mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
localization parser fix
Co-authored-by: Jill Stingray
This commit is contained in:
parent
5b0f5bb06c
commit
1e5e9d7080
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Localizator
|
||||||
if(isset($GLOBALS["localizationCache_$hash"])) return $GLOBALS["localizationCache_$hash"];
|
if(isset($GLOBALS["localizationCache_$hash"])) return $GLOBALS["localizationCache_$hash"];
|
||||||
|
|
||||||
$string = file_get_contents($file);
|
$string = file_get_contents($file);
|
||||||
$string = preg_replace("%^\%{.*\%}$%m", "", $string); #Remove comments
|
$string = preg_replace("%^\%{.*\%}\r?$%m", "", $string); #Remove comments
|
||||||
$array = [];
|
$array = [];
|
||||||
|
|
||||||
foreach(preg_split("%;[\\r\\n]++%", $string) as $statement) {
|
foreach(preg_split("%;[\\r\\n]++%", $string) as $statement) {
|
||||||
|
|
Loading…
Reference in a new issue