mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Delete unnecessary parameters when calling getComment()
This commit is contained in:
parent
dc90a6abf7
commit
f3ed346e0b
3 changed files with 10 additions and 10 deletions
|
|
@ -314,7 +314,7 @@ class commentAdminController extends comment
|
|||
for($i = 0; $i < $comment_count; $i++)
|
||||
{
|
||||
$comment_srl = $comment_srl_list[$i];
|
||||
$oComment = $oCommentModel->getComment($comment_srl, TRUE);
|
||||
$oComment = $oCommentModel->getComment($comment_srl);
|
||||
|
||||
if(!$oComment->get('member_srl') || $oComment->get('member_srl') == $sender_member_srl)
|
||||
{
|
||||
|
|
@ -384,7 +384,7 @@ class commentAdminController extends comment
|
|||
$comment_srl = Context::get('comment_srl');
|
||||
$oCommentModel = getModel('comment');
|
||||
$oCommentController = getController('comment');
|
||||
$oComment = $oCommentModel->getComment($comment_srl, false);
|
||||
$oComment = $oCommentModel->getComment($comment_srl);
|
||||
|
||||
if(!$oComment->isGranted()) throw new Rhymix\Framework\Exceptions\NotPermitted;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue