MDL-23912 core_comment: update count after deletion

This commit is contained in:
Jetha Chan
2014-11-18 09:35:55 +08:00
parent 0ac6d59990
commit d31e71b0d5
3 changed files with 30 additions and 18 deletions
+9 -4
View File
@@ -240,10 +240,15 @@ class comment {
self::$comment_page = optional_param('comment_page', '', PARAM_INT);
self::$comment_area = optional_param('comment_area', '', PARAM_AREA);
$page->requires->string_for_js('addcomment', 'moodle');
$page->requires->string_for_js('deletecomment', 'moodle');
$page->requires->string_for_js('comments', 'moodle');
$page->requires->string_for_js('commentsrequirelogin', 'moodle');
$page->requires->strings_for_js(array(
'addcomment',
'comments',
'commentscount',
'commentsrequirelogin',
'deletecomment',
),
'moodle'
);
}
/**