Improving do not count the deleted comments.

This commit is contained in:
BJRambo 2016-05-24 21:32:41 +09:00
parent 5e036bf586
commit fb4ff53a6f
3 changed files with 26 additions and 1 deletions

View file

@ -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;