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);
$strblogs = get_string('blogs', 'blog');
if ($action === 'delete') {
+ // Init comment JS strings.
+ comment::init();
+
if (empty($entry->id)) {
print_error('wrongentryid', 'blog');
}