mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +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"];
|
||||
|
||||
$string = file_get_contents($file);
|
||||
$string = preg_replace("%^\%{.*\%}$%m", "", $string); #Remove comments
|
||||
$string = preg_replace("%^\%{.*\%}\r?$%m", "", $string); #Remove comments
|
||||
$array = [];
|
||||
|
||||
foreach(preg_split("%;[\\r\\n]++%", $string) as $statement) {
|
||||
|
|
Loading…
Reference in a new issue