MDL-40428 Libraries: Deprecated delete_context
This commit is contained in:
+1
-3
@@ -208,9 +208,7 @@ function uninstall_plugin($type, $name) {
|
||||
// delete module contexts
|
||||
if ($coursemods) {
|
||||
foreach ($coursemods as $coursemod) {
|
||||
if (!delete_context(CONTEXT_MODULE, $coursemod->id)) {
|
||||
echo $OUTPUT->notification("Could not delete the context for $strpluginname with id = $coursemod->id");
|
||||
}
|
||||
context_helper::delete_instance(CONTEXT_MODULE, $coursemod->id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user