Skip to content

Commit

Permalink
Adding config() call to ensure that DATABASE_CONFIG has been
Browse files Browse the repository at this point in the history
loaded before attempting to use it.
refs #277

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
ceeram authored and markstory committed Nov 9, 2009
1 parent fa1b7f6 commit d251a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cake/console/libs/tasks/db_config.php
Expand Up @@ -258,6 +258,7 @@ function bake($configs) {
$oldConfigs = array();

if (file_exists($filename)) {
config('database');
$db = new $this->databaseClassName;
$temp = get_class_vars(get_class($db));

Expand Down

0 comments on commit d251a1d

Please sign in to comment.