Index: lib/moodlelib.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- lib/moodlelib.php (date 1443543929000) +++ lib/moodlelib.php (revision ) @@ -1460,6 +1460,12 @@ return (string)$forced[$name]; } else if ($name === 'siteidentifier' && $plugin == 'core') { return $siteidentifier; + } else if ($iscore && !empty($CFG->version)) { + // Instead of hitting cache, read from our $CFG. Do this only when we know $CFG has been initialized. + if (!property_exists($CFG, $name)) { + return false; + } + return $CFG->$name; } }