Skip to content

Commit 77c99ab

Browse files
authored
Merge pull request #159 from mebis-lp/MBS-7391-Replace_print_error_by_moodle_exception
MBS-7391: Replace the deprecated print_error by moodle exception
2 parents d813a3f + 1a82c9a commit 77c99ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
$state = empty($hide);
5454

5555
if (!isset($plugins[$pluginname])) {
56-
print_error('plugindoesnotexist', 'error');
56+
throw new \moodle_exception('plugindoesnotexist', 'error');
5757
}
5858
set_config('enabled', $state, 'cleaner_' . $pluginname);
5959
}
@@ -127,4 +127,3 @@
127127
echo html_writer::table($table);
128128

129129
echo $OUTPUT->footer();
130-

0 commit comments

Comments
 (0)