mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 02:52:41 +00:00
Correcting forcing of debug = 1 in console. Updating order of bootstrapping to match the one used for web requests. Fixes #366
This commit is contained in:
parent
7075aa5e86
commit
8ce9560f41
1 changed files with 1 additions and 5 deletions
|
@ -264,14 +264,10 @@ class ShellDispatcher {
|
|||
}
|
||||
}
|
||||
|
||||
Configure::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
|
||||
|
||||
if (!file_exists(APP_PATH . 'config' . DS . 'core.php')) {
|
||||
include_once CORE_PATH . 'cake' . DS . 'console' . DS . 'templates' . DS . 'skel' . DS . 'config' . DS . 'core.php';
|
||||
App::build();
|
||||
}
|
||||
|
||||
Configure::write('debug', 1);
|
||||
Configure::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue