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:
Mark Story 2010-02-20 19:57:17 -05:00
parent 7075aa5e86
commit 8ce9560f41

View file

@ -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;
}