Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-27899 Moved initialise_fullme during setup to after sam has been …

…initialised
  • Loading branch information...
commit 0ebb526f85b199593cbefc1dc8b3946afe9f7a54 1 parent 7a7d34f
@samhemelryk samhemelryk authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/setup.php
View
7 lib/setup.php
@@ -652,9 +652,6 @@ function stripslashes_deep($value) {
unset($phppos);
}
-// initialise ME's
-initialise_fullme();
-
// init session prevention flag - this is defined on pages that do not want session
if (CLI_SCRIPT) {
// no sessions in CLI scripts possible
@@ -677,6 +674,10 @@ function stripslashes_deep($value) {
$SESSION = &$_SESSION['SESSION'];
$USER = &$_SESSION['USER'];
+// initialise ME's
+// This must presently come AFTER $USER has been set up.
+initialise_fullme();
+
// Late profiling, only happening if early one wasn't started
if (!empty($CFG->profilingenabled)) {
require_once($CFG->libdir . '/xhprof/xhprof_moodle.php');
Please sign in to comment.
Something went wrong with that request. Please try again.