From b82ad15c5eb40f6e9cee539a1c0b63a1fbf49f16 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 27 Dec 2010 00:19:59 -0500 Subject: [PATCH] Fixing issue in console when baking a new project, from outside the installation directory you would get an error because database.php could not be found. Fixes #1406 --- cake/libs/model/connection_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/connection_manager.php b/cake/libs/model/connection_manager.php index 9581431fc..f8916877e 100644 --- a/cake/libs/model/connection_manager.php +++ b/cake/libs/model/connection_manager.php @@ -19,7 +19,7 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ require LIBS . 'model' . DS . 'datasources' . DS . 'datasource.php'; -include_once CONFIGS . 'database.php'; +config('database'); /** * Manages loaded instances of DataSource objects