fix: [app:bootstrap] Automatically cast `debug` setting in bootstrap.php to migrate config

dependabot/npm_and_yarn/webroot/theme/braces-3.0.3
Sami Mokaddem 2024-04-09 12:47:45 +02:00
parent e9a79c54fc
commit 2c8c967c06
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ if (file_exists(CONFIG . 'app_local.php')) {
$settings = file_get_contents(CONFIG . 'config.json'); $settings = file_get_contents(CONFIG . 'config.json');
$settings = json_decode($settings, true); $settings = json_decode($settings, true);
foreach ($settings as $path => $setting) { foreach ($settings as $path => $setting) {
if($path == 'debug') {
Configure::write($path, (bool) $setting);
continue;
}
Configure::write($path, $setting); Configure::write($path, $setting);
} }
} }