From c8aabd6be35792f29363d920cf1f24fd3ca42c3f Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Tue, 22 Sep 2009 22:47:05 +0000 Subject: [PATCH] fix new split git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@679 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/admin/translate.php | 2 +- site/libs/common.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/admin/translate.php b/site/admin/translate.php index 894e0cd3..fd945664 100644 --- a/site/admin/translate.php +++ b/site/admin/translate.php @@ -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]); diff --git a/site/libs/common.php b/site/libs/common.php index fa098e94..69fd39a7 100644 --- a/site/libs/common.php +++ b/site/libs/common.php @@ -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]);