mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding config() call to ensure that DATABASE_CONFIG has been
loaded before attempting to use it. refs #277 Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
fa1b7f617f
commit
d251a1d5ca
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue