Merge branch 'MDL-66836-m37' of https://github.com/sammarshallou/moodle into MOODLE_37_STABLE
This commit is contained in:
@@ -1411,6 +1411,14 @@ function set_config($name, $value, $plugin=null) {
|
||||
$config->value = $value;
|
||||
$DB->insert_record('config', $config, false);
|
||||
}
|
||||
// When setting config during a Behat test (in the CLI script, not in the web browser
|
||||
// requests), remember which ones are set so that we can clear them later.
|
||||
if (defined('BEHAT_TEST')) {
|
||||
if (!property_exists($CFG, 'behat_cli_added_config')) {
|
||||
$CFG->behat_cli_added_config = [];
|
||||
}
|
||||
$CFG->behat_cli_added_config[$name] = true;
|
||||
}
|
||||
}
|
||||
if ($name === 'siteidentifier') {
|
||||
cache_helper::update_site_identifier($value);
|
||||
|
||||
Reference in New Issue
Block a user