Allow simultaneous loading of config.ini and config.php in templates

This commit is contained in:
tobi132
2019-07-16 23:52:28 +02:00
parent 0c207ce12d
commit f5374e8ce7
6 changed files with 48 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ if(!isset($error) || !$error) {
$config['database_type'] = $config['lua']['database_type'];
else if(isset($config['lua']['sql_type'])) // otserv
$config['database_type'] = $config['lua']['sql_type'];
$config['database_type'] = strtolower($config['database_type']);
if(empty($config['database_type'])) {
error($locale['step_database_error_database_empty']);