mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-21 21:05:55 +02:00
Add settings.callbacks.get
This commit is contained in:
@@ -4,6 +4,7 @@ $deprecatedConfig = [
|
||||
'template',
|
||||
'template_allow_change',
|
||||
'vocations_amount',
|
||||
'vocations',
|
||||
'client',
|
||||
'session_prefix',
|
||||
'friendly_urls',
|
||||
@@ -44,11 +45,3 @@ foreach ($deprecatedConfig as $key => $value) {
|
||||
//var_dump($settings['core.'.$value]['value']);
|
||||
}
|
||||
|
||||
$vocationsParsed = array_map(
|
||||
function(string $value): string {
|
||||
return trim($value);
|
||||
},
|
||||
explode(',', setting('core.vocations'))
|
||||
);
|
||||
|
||||
config(['vocations', $vocationsParsed]);
|
||||
|
Reference in New Issue
Block a user