Skip to content

Commit 9da5509

Browse files
authored
Merge pull request #2224 from techoner/patch-1
change new \Config\Database() to config('Database')
2 parents 2e23526 + 2560e94 commit 9da5509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function connect($group = null, bool $getShared = true)
8787
$group = 'custom-' . md5(json_encode($config));
8888
}
8989

90-
$config = $config ?? new \Config\Database();
90+
$config = $config ?? config('Database');
9191

9292
if (empty($group))
9393
{

0 commit comments

Comments
 (0)