diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 67e00df56..3bdc14e8f 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -403,6 +403,11 @@ class Configure extends Object { } Cache::config('default'); } + + 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.", true), CONFIGS), E_USER_ERROR); + } + if (App::path('controllers') == array()) { App::build(array( 'models' => $modelPaths, 'views' => $viewPaths, 'controllers' => $controllerPaths, @@ -411,15 +416,6 @@ class Configure extends Object { 'shells' => $shellPaths, 'libs' => $libPaths )); } - - 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.", true), CONFIGS), E_USER_ERROR); - } - - Configure::buildPaths(compact( - 'modelPaths', 'viewPaths', 'controllerPaths', 'helperPaths', 'componentPaths', - 'behaviorPaths', 'pluginPaths', 'vendorPaths', 'localePaths', 'shellPaths' - )); } } }