mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 12:33:27 +02:00
[WIP] More work on settings
Move more config to settings (mainly mail_* + some other) Remove mail_admin, wasnt used anywhere Add return type to some functions Add Twig settings(key) function Possibility to save setting to db
This commit is contained in:
@@ -30,7 +30,7 @@ foreach ($deprecatedConfig as $value) {
|
||||
config(
|
||||
[
|
||||
$value,
|
||||
$settings['core.'.$value]['value']
|
||||
setting('core.'.$value)
|
||||
]
|
||||
);
|
||||
|
||||
@@ -41,7 +41,7 @@ $vocationsParsed = array_map(
|
||||
function(string $value): string {
|
||||
return trim($value);
|
||||
},
|
||||
explode(',', $settings['core.vocations']['value'])
|
||||
explode(',', setting('core.vocations'))
|
||||
);
|
||||
|
||||
config(['vocations', $vocationsParsed]);
|
||||
|
Reference in New Issue
Block a user