Cleaner (and maybe faster) INI parsing

This commit is contained in:
PEMapModder 2015-10-31 20:31:24 +08:00
parent 04fc062b2a
commit 6ae0f3c8d8

View File

@ -61,13 +61,13 @@ class BaseLang{
continue; continue;
} }
$t = explode("=", $line); $t = explode("=", $line, 2);
if(count($t) < 2){ if(count($t) < 2){
continue; continue;
} }
$key = trim(array_shift($t)); $key = trim($t[0]);
$value = trim(implode("=", $t)); $value = trim($t[1]);
if($value === ""){ if($value === ""){
continue; continue;