Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
2.1
-
None
-
None
-
MOODLE_21_STABLE
Description
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