mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 19:32:15 +09:00
Revert 61f6456b and add a warning instead
This commit is contained in:
parent
50133f6ae5
commit
b354d8af49
2 changed files with 3 additions and 6 deletions
|
|
@ -169,12 +169,11 @@ class documentModel extends document
|
|||
return $oDocument;
|
||||
}
|
||||
}
|
||||
/*
|
||||
if($is_admin)
|
||||
{
|
||||
trigger_error('Called DocumentModel::getDocument() with $is_admin = true', \E_USER_WARNING);
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||
}
|
||||
*/
|
||||
|
||||
return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||
}
|
||||
|
|
@ -212,12 +211,11 @@ class documentModel extends document
|
|||
$oDocument = new documentItem();
|
||||
$oDocument->setAttribute($attribute, false);
|
||||
}
|
||||
/*
|
||||
if($is_admin)
|
||||
{
|
||||
trigger_error('Called DocumentModel::getDocuments() with $is_admin = true', \E_USER_WARNING);
|
||||
$GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl]->setGrant();
|
||||
}
|
||||
*/
|
||||
|
||||
$documents[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue