Skip to content

Commit

Permalink
Mostly reverting changes made in [8ce9560]. Using a console like proj…
Browse files Browse the repository at this point in the history
…ect bake from outside a cake app no longer causes errors from Configure. Fixes #387
  • Loading branch information
markstory committed Feb 25, 2010
1 parent 9632e74 commit 585f731
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cake/console/cake.php
Expand Up @@ -264,10 +264,13 @@ function __bootstrap() {
}
}

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

Expand Down

0 comments on commit 585f731

Please sign in to comment.