mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* support for some old servers, where arrays are used in config.lua
This commit is contained in:
parent
6668c47368
commit
515b42cd51
@ -904,6 +904,10 @@ function load_config_lua($filename)
|
||||
$result[$key] = (string) substr(substr($value, 1), 0, -1);
|
||||
elseif(in_array($value, array('true', 'false')))
|
||||
$result[$key] = ($value == 'true') ? true : false;
|
||||
elseif(substr($value, 0 , 1) == '{' && substr($value, -1 , 1) == '}') {
|
||||
// arrays are not supported yet
|
||||
// just ignore the error
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach($result as $tmp_key => $tmp_value) // load values definied by other keys, like: dailyFragsToBlackSkull = dailyFragsToRedSkull
|
||||
|
Loading…
x
Reference in New Issue
Block a user