mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 12:33:27 +02:00
Rename
This commit is contained in:
47
system/compat/config.php
Normal file
47
system/compat/config.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?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,
|
||||
$settings['core.'.$value]['value']
|
||||
]
|
||||
);
|
||||
|
||||
//var_dump($settings['core.'.$value]['value']);
|
||||
}
|
||||
|
||||
$vocationsParsed = array_map(
|
||||
function(string $value): string {
|
||||
return trim($value);
|
||||
},
|
||||
explode(',', $settings['core.vocations']['value'])
|
||||
);
|
||||
|
||||
config(['vocations', $vocationsParsed]);
|
Reference in New Issue
Block a user