]> git.mjollnir.org Git - moodle.git/commitdiff
admin/index: Populate the context path JIT for the new admin user
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:29:55 +0000 (07:29 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:29:55 +0000 (07:29 +0000)
With this call to build_context_path() the admin rights of the new
user are loaded just before they are first needed.

admin/index.php

index 5c5ca295051232280a21a0f5b7e299aebe271bc9..38708e041921c018ac9e78b292056e2bca99f4f5 100644 (file)
 
 /// Set up the admin user
     if (empty($CFG->rolesactive)) {
+        build_context_path();
         create_admin_user();
     }