fix: [settings] invalid bootstrap loading of config.json
- it was dependent on the app_local.php file existingdependabot/npm_and_yarn/webroot/theme/braces-3.0.3
parent
8603b7da04
commit
6907ed2842
|
@ -89,17 +89,18 @@ try {
|
||||||
if (file_exists(CONFIG . 'app_local.php')) {
|
if (file_exists(CONFIG . 'app_local.php')) {
|
||||||
Configure::load('app_local', 'default');
|
Configure::load('app_local', 'default');
|
||||||
//Configure::load('cerebrate', 'default', true);
|
//Configure::load('cerebrate', 'default', true);
|
||||||
$settingsFile = new File(CONFIG . 'config.json');
|
}
|
||||||
if ($settingsFile->exists()) {
|
|
||||||
$settings = file_get_contents(CONFIG . 'config.json');
|
$settingsFile = new File(CONFIG . 'config.json');
|
||||||
$settings = json_decode($settings, true);
|
if ($settingsFile->exists()) {
|
||||||
foreach ($settings as $path => $setting) {
|
$settings = file_get_contents(CONFIG . 'config.json');
|
||||||
if($path == 'debug') {
|
$settings = json_decode($settings, true);
|
||||||
Configure::write($path, (bool) $setting);
|
foreach ($settings as $path => $setting) {
|
||||||
continue;
|
if ($path == 'debug') {
|
||||||
}
|
Configure::write($path, (bool) $setting);
|
||||||
Configure::write($path, $setting);
|
continue;
|
||||||
}
|
}
|
||||||
|
Configure::write($path, $setting);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue