mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-03 12:49:20 +02:00

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
48 lines
808 B
PHP
48 lines
808 B
PHP
<?php
|
|
|
|
$deprecatedConfig = [
|
|
'template',
|
|
'template_allow_change',
|
|
'vocations_amount',
|
|
'client',
|
|
'session_prefix',
|
|
'friendly_urls',
|
|
'backward_support',
|
|
'charset',
|
|
'meta_description',
|
|
'meta_keywords',
|
|
'footer',
|
|
//'language',
|
|
'visitors_counter',
|
|
'visitors_counter_ttl',
|
|
'views_counter',
|
|
'outfit_images_url',
|
|
'item_images_url',
|
|
'account_country',
|
|
'team_display_outfit',
|
|
'team_display_status',
|
|
'team_display_world',
|
|
'team_display_lastlogin',
|
|
'multiworld',
|
|
];
|
|
|
|
foreach ($deprecatedConfig as $value) {
|
|
config(
|
|
[
|
|
$value,
|
|
setting('core.'.$value)
|
|
]
|
|
);
|
|
|
|
//var_dump($settings['core.'.$value]['value']);
|
|
}
|
|
|
|
$vocationsParsed = array_map(
|
|
function(string $value): string {
|
|
return trim($value);
|
|
},
|
|
explode(',', setting('core.vocations'))
|
|
);
|
|
|
|
config(['vocations', $vocationsParsed]);
|