-
Sub-task
-
Resolution: Duplicate
-
Minor
-
None
-
2.1
-
None
-
MOODLE_21_STABLE
1/ do not attempt to create new system context when other contexts already exist - this may prevent major disasters when somebody touches the context table manually or defines invalid SYSCONTEXTID in config.php
2/ add full support for SYSCONTEXTID != 1 in unit tests
3/ more validation and extra checks - it is always better to throw exception when something is wrong with the system context