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
This commit is contained in:
slawkens
2020-06-09 01:39:55 +02:00
parent 909bfffb51
commit fa0de1c413
11 changed files with 480 additions and 462 deletions

25
system/compat_config.php Normal file
View File

@@ -0,0 +1,25 @@
<?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'];
}