mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing issue that caused db config generation to fail.
This commit is contained in:
parent
6a9ca7f54a
commit
1d974f5a48
1 changed files with 2 additions and 4 deletions
|
@ -305,10 +305,9 @@ class DbConfigTask extends Shell {
|
|||
$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 @@ class DbConfigTask extends Shell {
|
|||
}
|
||||
|
||||
$out .= "}\n";
|
||||
$out .= "?>";
|
||||
$filename = $this->path . 'database.php';
|
||||
return $this->createFile($filename, $out);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue