mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
fix new split
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@679 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
f75983565c
commit
c8aabd6be3
@ -37,7 +37,7 @@ function save_message($locale,$key,$value) {
|
||||
$fp = fopen(dirname(__FILE__)."/../locales/$locale/properties", "r");
|
||||
while (!feof($fp)) {
|
||||
$line = fgets($fp, 4096);
|
||||
$keyval = split("=", $line, 2 );
|
||||
$keyval = preg_split("/=/", $line, 2 );
|
||||
if( isset($keyval[1]) ) {
|
||||
if($keyval[0] == 'encoding') {
|
||||
$current_encoding = trim($keyval[1]);
|
||||
|
@ -118,7 +118,7 @@ function load_messages($locale) {
|
||||
if(!$fp) { die("wrong locale"); }
|
||||
while (!feof($fp)) {
|
||||
$line = fgets($fp, 4096);
|
||||
$keyval = split("=", $line, 2 );
|
||||
$keyval = preg_split("/=/", $line, 2 );
|
||||
if( isset($keyval[1]) ) {
|
||||
if($keyval[0] == 'encoding') {
|
||||
$current_encoding = trim($keyval[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user