mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Remove unnecessary calculation of comment count
This commit is contained in:
parent
51acad706e
commit
563814a2f3
1 changed files with 1 additions and 2 deletions
|
|
@ -632,8 +632,6 @@ class commentController extends comment
|
|||
}
|
||||
|
||||
$oCommentModel = getModel("comment");
|
||||
$nr_comments_not_approved = $oCommentModel->getCommentAllCount(NULL, FALSE);
|
||||
|
||||
$oModuleModel = getModel("module");
|
||||
$module_info = $oModuleModel->getModuleInfoByDocumentSrl($obj->document_srl);
|
||||
|
||||
|
|
@ -657,6 +655,7 @@ class commentController extends comment
|
|||
$url_comment = getFullUrl('','document_srl',$obj->document_srl).'#comment_'.$obj->comment_srl;
|
||||
if($using_validation)
|
||||
{
|
||||
$nr_comments_not_approved = $oCommentModel->getCommentAllCount(NULL, FALSE);
|
||||
$url_approve = getFullUrl('', 'module', 'admin', 'act', 'procCommentAdminChangePublishedStatusChecked', 'cart[]', $obj->comment_srl, 'will_publish', '1', 'search_target', 'is_published', 'search_keyword', 'N');
|
||||
$url_trash = getFullUrl('', 'module', 'admin', 'act', 'procCommentAdminDeleteChecked', 'cart[]', $obj->comment_srl, 'search_target', 'is_trash', 'search_keyword', 'true');
|
||||
$mail_content = "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue