MDL-51395 blog: Fix output of strings for blog comments

This commit is contained in:
Jun Pataleta
2015-11-04 23:47:59 -06:00
parent 336f2e073b
commit 5dd381d25c
+4
View File
@@ -26,6 +26,7 @@
require_once(dirname(dirname(__FILE__)).'/config.php');
require_once('lib.php');
require_once('locallib.php');
require_once($CFG->dirroot .'/comment/lib.php');
$action = required_param('action', PARAM_ALPHA);
$id = optional_param('entryid', 0, PARAM_INT);
@@ -110,6 +111,9 @@ $output = $PAGE->get_renderer('blog');
$strblogs = get_string('blogs', 'blog');
if ($action === 'delete') {
// Init comment JS strings.
comment::init();
if (empty($entry->id)) {
print_error('wrongentryid', 'blog');
}