Merge branch 'MDL-75005_40' of https://github.com/skodak/moodle into MOODLE_400_STABLE

This commit is contained in:
Andrew Nicols
2023-02-23 10:29:41 +08:00
+2 -2
View File
@@ -812,8 +812,8 @@ function initialise_local_config_cache() {
if (!empty($CFG->siteidentifier) && !file_exists($bootstrapcachefile)) {
$contents = "<?php
// ********** This file is generated DO NOT EDIT **********
\$CFG->siteidentifier = '" . addslashes($CFG->siteidentifier) . "';
\$CFG->bootstraphash = '" . hash_local_config_cache() . "';
\$CFG->siteidentifier = " . var_export($CFG->siteidentifier, true) . ";
\$CFG->bootstraphash = " . var_export(hash_local_config_cache(), true) . ";
// Only if the file is not stale and has not been defined.
if (\$CFG->bootstraphash === hash_local_config_cache() && !defined('SYSCONTEXTID')) {
define('SYSCONTEXTID', ".SYSCONTEXTID.");