Skip to content
Permalink
Browse files

Fixing issue that caused db config generation to fail.

  • Loading branch information...
markstory committed Oct 18, 2010
1 parent 6a9ca7f commit 1d974f5a481539fd427eea00d551fa3af918f80e
Showing with 2 additions and 4 deletions.
  1. +2 −4 cake/console/shells/tasks/db_config.php
@@ -305,10 +305,9 @@ public function bake($configs) {
$out .= "class DATABASE_CONFIG {\n\n";
foreach ($configs as $config) {
$config = array_merge($this->__defaultConfig, $config);
extract($config);
$config = array_merge($this->_defaultConfig, $config);
$out .= "\tvar \${$name} = array(\n";
$out .= "\tpublic \${$name} = array(\n";
$out .= "\t\t'driver' => '{$driver}',\n";
$out .= "\t\t'persistent' => {$persistent},\n";
$out .= "\t\t'host' => '{$host}',\n";
@@ -337,7 +336,6 @@ public function bake($configs) {
}
$out .= "}\n";
$out .= "?>";
$filename = $this->path . 'database.php';
return $this->createFile($filename, $out);
}

0 comments on commit 1d974f5

Please sign in to comment.
You can’t perform that action at this time.