Mostly reverting changes made in [8ce9560f41]. Using a console like project bake from outside a cake app no longer causes errors from Configure. Fixes #387

This commit is contained in:
Mark Story 2010-02-24 22:35:20 -05:00
parent 9632e74cfc
commit 585f731ae2

View file

@ -264,10 +264,13 @@ 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::getInstance(file_exists(CONFIGS . 'bootstrap.php'));
return true;
}