myaac/system/compat_config.php
slawkens fa0de1c413 Settings [WIP]
New Settings class
New Plugins::load() method
Move config.php to settings.php
MyAAC Settings will have plugin_name = 'core'
Add compat_config.php
2020-06-09 01:39:55 +02:00

25 lines
439 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',
];
foreach ($deprecatedConfig as $value) {
$config[$value] = $settings['core.'.$value]['value'];
}