mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Improving do not count the deleted comments.
This commit is contained in:
parent
5e036bf586
commit
fb4ff53a6f
3 changed files with 26 additions and 1 deletions
|
|
@ -248,12 +248,18 @@ class commentModel extends comment
|
|||
|
||||
//check if module is using validation system
|
||||
$oCommentController = getController('comment');
|
||||
|
||||
$using_validation = $oCommentController->isModuleUsingPublishValidation($module_srl);
|
||||
$module_info = getModel('module')->getModuleInfoByDocumentSrl($document_srl);
|
||||
$use_comment_massage = $module_info->comment_delete_message;
|
||||
|
||||
if($using_validation)
|
||||
{
|
||||
$args->status = 1;
|
||||
}
|
||||
elseif($use_comment_massage == 'Y')
|
||||
{
|
||||
$args->status = 1;
|
||||
}
|
||||
|
||||
$output = executeQuery('comment.getCommentCount', $args, NULL, 'master');
|
||||
$total_count = $output->data->count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue