From d251a1d5ca4acadabaad5bba9ced84d47d980f31 Mon Sep 17 00:00:00 2001 From: ceeram Date: Mon, 9 Nov 2009 18:30:09 +0100 Subject: [PATCH] Adding config() call to ensure that DATABASE_CONFIG has been loaded before attempting to use it. refs #277 Signed-off-by: Mark Story --- cake/console/libs/tasks/db_config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/console/libs/tasks/db_config.php b/cake/console/libs/tasks/db_config.php index f138de1b0..6635fe8c0 100644 --- a/cake/console/libs/tasks/db_config.php +++ b/cake/console/libs/tasks/db_config.php @@ -258,6 +258,7 @@ class DbConfigTask extends Shell { $oldConfigs = array(); if (file_exists($filename)) { + config('database'); $db = new $this->databaseClassName; $temp = get_class_vars(get_class($db));