Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9
-
Fix Version/s: 1.9.1
-
Component/s: Libraries, Roles / Access
-
Labels:None
-
Database:Any
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
In Moodle code there are a lot of calls of this type:
get_context_instance(CONTEXT_SYSTEM, SITEID)
And, when requesting for CONTEXT_SYSTEM we don't need to specify SITEID any more.
So, all the sentences above should be changed to:
get_context_instance(CONTEXT_SYSTEM)
There are aprox. 130 changes to perform, distributed along aprox. 90 files. I would suggest to do the change progressively, fixing 3-4 files each day, both in 19_STABLE and HEAD.
Ciao ![]()
OK, I will fix it "gradually" this time