MDL-34464 mod_data Replace all instances of get_context_instance() with respective context_XXXX class in mod/data
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@
|
||||
print_error('cannotcallscript');
|
||||
}
|
||||
|
||||
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
|
||||
$context = context_module::instance($cm->id);
|
||||
|
||||
$inactive = NULL;
|
||||
$activetwo = NULL;
|
||||
|
||||
Reference in New Issue
Block a user