Skip to content

Commit

Permalink
MDL-51395 blog: Fix output of strings for blog comments
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 5, 2015
1 parent 4cef723 commit cefa583
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blog/edit.php
Expand Up @@ -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);
Expand Down Expand Up @@ -115,6 +116,9 @@
$strblogs = get_string('blogs', 'blog');

if ($action === 'delete') {
// Init comment JS strings.
comment::init();

if (empty($entry->id)) {
print_error('wrongentryid', 'blog');
}
Expand Down

0 comments on commit cefa583

Please sign in to comment.