mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Move inclusion of application bootstrap behind ErrorHandler initialization in Configure::bootstrap().
This commit is contained in:
parent
a4da64cacb
commit
7a93276ecf
1 changed files with 3 additions and 3 deletions
|
@ -75,9 +75,6 @@ class Configure {
|
|||
App::$bootstrapping = false;
|
||||
App::init();
|
||||
App::build();
|
||||
if (!include APP . 'Config' . DS . 'bootstrap.php') {
|
||||
trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
|
||||
}
|
||||
$level = -1;
|
||||
if (isset(self::$_values['Error']['level'])) {
|
||||
error_reporting(self::$_values['Error']['level']);
|
||||
|
@ -89,6 +86,9 @@ class Configure {
|
|||
if (!empty(self::$_values['Exception']['handler'])) {
|
||||
set_exception_handler(self::$_values['Exception']['handler']);
|
||||
}
|
||||
if (!include APP . 'Config' . DS . 'bootstrap.php') {
|
||||
trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue