mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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
|
|
@ -157,12 +157,11 @@ class commentModel extends comment
|
||||||
public static function getComment($comment_srl = 0, $is_admin = FALSE, $columnList = array())
|
public static function getComment($comment_srl = 0, $is_admin = FALSE, $columnList = array())
|
||||||
{
|
{
|
||||||
$oComment = new commentItem($comment_srl, $columnList);
|
$oComment = new commentItem($comment_srl, $columnList);
|
||||||
/*
|
|
||||||
if($is_admin)
|
if($is_admin)
|
||||||
{
|
{
|
||||||
|
trigger_error('Called CommentModel::getComment() with $is_admin = true', \E_USER_WARNING);
|
||||||
$oComment->setGrant();
|
$oComment->setGrant();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
return $oComment;
|
return $oComment;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -169,12 +169,11 @@ class documentModel extends document
|
||||||
return $oDocument;
|
return $oDocument;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if($is_admin)
|
if($is_admin)
|
||||||
{
|
{
|
||||||
|
trigger_error('Called DocumentModel::getDocument() with $is_admin = true', \E_USER_WARNING);
|
||||||
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
$GLOBALS['XE_DOCUMENT_LIST'][$document_srl]->setGrant();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
return $GLOBALS['XE_DOCUMENT_LIST'][$document_srl];
|
||||||
}
|
}
|
||||||
|
|
@ -212,12 +211,11 @@ class documentModel extends document
|
||||||
$oDocument = new documentItem();
|
$oDocument = new documentItem();
|
||||||
$oDocument->setAttribute($attribute, false);
|
$oDocument->setAttribute($attribute, false);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
if($is_admin)
|
if($is_admin)
|
||||||
{
|
{
|
||||||
|
trigger_error('Called DocumentModel::getDocuments() with $is_admin = true', \E_USER_WARNING);
|
||||||
$GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl]->setGrant();
|
$GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl]->setGrant();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
$documents[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl];
|
$documents[$attribute->document_srl] = $GLOBALS['XE_DOCUMENT_LIST'][$attribute->document_srl];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue