mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +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++)
|
for($i = 0; $i < $comment_count; $i++)
|
||||||
{
|
{
|
||||||
$comment_srl = $comment_srl_list[$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)
|
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');
|
$comment_srl = Context::get('comment_srl');
|
||||||
$oCommentModel = getModel('comment');
|
$oCommentModel = getModel('comment');
|
||||||
$oCommentController = getController('comment');
|
$oCommentController = getController('comment');
|
||||||
$oComment = $oCommentModel->getComment($comment_srl, false);
|
$oComment = $oCommentModel->getComment($comment_srl);
|
||||||
|
|
||||||
if(!$oComment->isGranted()) throw new Rhymix\Framework\Exceptions\NotPermitted;
|
if(!$oComment->isGranted()) throw new Rhymix\Framework\Exceptions\NotPermitted;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
}
|
}
|
||||||
$oComment = CommentModel::getComment($comment_srl, false, false);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
if(!$oComment->isExists())
|
if(!$oComment->isExists())
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||||
|
|
@ -75,7 +75,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
}
|
}
|
||||||
$oComment = CommentModel::getComment($comment_srl, false, false);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
if(!$oComment->isExists())
|
if(!$oComment->isExists())
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||||
|
|
@ -118,7 +118,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
}
|
}
|
||||||
$oComment = CommentModel::getComment($comment_srl, false, false);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
if(!$oComment->isExists())
|
if(!$oComment->isExists())
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||||
|
|
@ -154,7 +154,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
}
|
}
|
||||||
$oComment = CommentModel::getComment($comment_srl, false, false);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
if(!$oComment->isExists())
|
if(!$oComment->isExists())
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||||
|
|
@ -267,7 +267,7 @@ class commentController extends comment
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||||
}
|
}
|
||||||
$oComment = CommentModel::getComment($comment_srl, false, false);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
if(!$oComment->isExists())
|
if(!$oComment->isExists())
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
throw new Rhymix\Framework\Exceptions\TargetNotFound;
|
||||||
|
|
@ -1481,7 +1481,7 @@ class commentController extends comment
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the original comment
|
// Get the original comment
|
||||||
$oComment = CommentModel::getComment($comment_srl, FALSE, FALSE);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
|
|
||||||
// Pass if the author's IP address is as same as visitor's.
|
// Pass if the author's IP address is as same as visitor's.
|
||||||
if($oComment->get('ipaddress') == \RX_CLIENT_IP)
|
if($oComment->get('ipaddress') == \RX_CLIENT_IP)
|
||||||
|
|
@ -1625,7 +1625,7 @@ class commentController extends comment
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the original comment
|
// get the original comment
|
||||||
$oComment = CommentModel::getComment($comment_srl, FALSE, FALSE);
|
$oComment = CommentModel::getComment($comment_srl);
|
||||||
|
|
||||||
// failed if both ip addresses between author's and the current user are same.
|
// failed if both ip addresses between author's and the current user are same.
|
||||||
if($oComment->get('ipaddress') == \RX_CLIENT_IP && !$this->user->isAdmin())
|
if($oComment->get('ipaddress') == \RX_CLIENT_IP && !$this->user->isAdmin())
|
||||||
|
|
|
||||||
|
|
@ -1109,7 +1109,7 @@ class commentModel extends comment
|
||||||
$point = 1;
|
$point = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$oComment = self::getComment($comment_srl, FALSE, FALSE);
|
$oComment = self::getComment($comment_srl);
|
||||||
$module_srl = $oComment->get('module_srl');
|
$module_srl = $oComment->get('module_srl');
|
||||||
if(!$module_srl)
|
if(!$module_srl)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue