-
Sub-task
-
Resolution: Duplicate
-
Minor
-
None
-
2.1
-
None
-
MOODLE_21_STABLE
We need to forbid direct loading of context instance from database, developers do that either to improve perf or because they do not understand the usage get_context_instance and friends.
1/ replace all get_record('context', ...) with get_context_instance...()
2/ fix all context preloading