Skip to content

Commit

Permalink
Merge branch 'MDL-51395-29' of git://github.com/junpataleta/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_29_STABLE
  • Loading branch information
andrewnicols committed Nov 5, 2015
2 parents 804122a + ddda4a8 commit 3f4249d
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 3f4249d

Please sign in to comment.