Skip to content

Commit 8efaec5

Browse files
committed
fix: patch up mvc config loading
1 parent f521e1c commit 8efaec5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/globals/config.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function PathsConfig($setting = null)
1919
'channels' => 'app/channels',
2020
'components' => 'app/components',
2121
'controllers' => 'app/controllers',
22+
'database' => 'app/database',
2223
'databaseStorage' => 'storage/app/db',
2324
'exceptions' => 'app/exceptions',
2425
'events' => 'app/events',
@@ -94,5 +95,5 @@ function MailConfig($setting = null)
9495
function MvcConfig($appConfig, $setting = null)
9596
{
9697
$config = \Leaf\Config::getStatic("mvc.config.$appConfig");
97-
return !$setting ? $config : $config[$setting];
98+
return !$setting ? $config : ($config[$setting] ?? null);
9899
}

0 commit comments

Comments
 (0)