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:
Evgeny Gryaznov 2009-09-22 22:47:05 +00:00
parent f75983565c
commit c8aabd6be3
2 changed files with 2 additions and 2 deletions

View File

@ -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]);

View File

@ -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]);