mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 12:15:32 +00:00
Cleaner (and maybe faster) INI parsing
This commit is contained in:
parent
04fc062b2a
commit
6ae0f3c8d8
@ -61,13 +61,13 @@ class BaseLang{
|
||||
continue;
|
||||
}
|
||||
|
||||
$t = explode("=", $line);
|
||||
$t = explode("=", $line, 2);
|
||||
if(count($t) < 2){
|
||||
continue;
|
||||
}
|
||||
|
||||
$key = trim(array_shift($t));
|
||||
$value = trim(implode("=", $t));
|
||||
$key = trim($t[0]);
|
||||
$value = trim($t[1]);
|
||||
|
||||
if($value === ""){
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user