MDL-29563 course Throwing an exception instead of a message
This commit is contained in:
@@ -61,13 +61,8 @@ $a->modtype = get_string('modulename', $cm->modname);
|
||||
$a->modname = format_string($cm->name);
|
||||
|
||||
if (!plugin_supports('mod', $cm->modname, FEATURE_BACKUP_MOODLE2)) {
|
||||
echo $output->header();
|
||||
echo $output->notification(get_string('duplicatenosupport', 'core', $a));
|
||||
echo $output->continue_button(
|
||||
new moodle_url('/course/view.php#section-' . $cm->sectionnum, array('id' => $course->id))
|
||||
);
|
||||
echo $output->footer();
|
||||
die;
|
||||
$url = new moodle_url('/course/view.php#section-' . $cm->sectionnum, array('id' => $course->id));
|
||||
print_error('duplicatenosupport', 'core', $url, $a);
|
||||
}
|
||||
|
||||
// backup the activity
|
||||
|
||||
Reference in New Issue
Block a user