mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Errors while deleting a module are no longer fatal errors
This commit is contained in:
parent
5c0bef5d46
commit
f3065eeb13
@ -48,13 +48,13 @@
|
||||
break;
|
||||
case "delete":
|
||||
if (! delete_instance($mod->instance)) {
|
||||
error("Could not delete the $mod->modulename");
|
||||
notify("Could not delete the $mod->modulename (instance)");
|
||||
}
|
||||
if (! delete_course_module($mod->coursemodule)) {
|
||||
error("Could not delete the $mod->modulename");
|
||||
notify("Could not delete the $mod->modulename (coursemodule)");
|
||||
}
|
||||
if (! delete_mod_from_week($mod->coursemodule, "$mod->week")) {
|
||||
error("Could not delete the $mod->modulename from that week");
|
||||
notify("Could not delete the $mod->modulename from that week");
|
||||
}
|
||||
add_to_log($mod->course, "course", "delete mod", "view.php?id=$mod->course", "$mod->modulename $mod->instance");
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user