Skip to content
Permalink
Browse files

Moving error handler configuration setting after application bootstra…

…p is done, this will allow classes to be imported using the cache.
  • Loading branch information...
markstory committed Nov 15, 2010
1 parent e68a1a0 commit b371de8cf452e5219ca8bdc08876fae9265b69fc
Showing with 7 additions and 7 deletions.
  1. +7 −7 cake/libs/configure.php
@@ -368,18 +368,18 @@ private static function __loadBootstrap($boot) {
}
}
App::init();
App::build();
if (!include(CONFIGS . 'bootstrap.php')) {
trigger_error(sprintf(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP."), CONFIGS), E_USER_ERROR);
}
if (!empty(self::$_values['Error']['handler'])) {
set_error_handler(self::$_values['Error']['handler']);
}
if (!empty(self::$_values['Exception']['handler'])) {
set_exception_handler(self::$_values['Exception']['handler']);
}
App::init();
App::build();
if (!include(CONFIGS . 'bootstrap.php')) {
trigger_error(sprintf(__("Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP."), CONFIGS), E_USER_ERROR);
}
}
}
}
}

0 comments on commit b371de8

Please sign in to comment.
You can’t perform that action at this time.