From 2981120ef4099b66141c617b5c3deb45389ee5a9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 4 May 2004 08:37:18 +0000 Subject: [PATCH] fix for mbstring.overloading = 7 --- phpgwapi/inc/class.setup_translation.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.setup_translation.inc.php b/phpgwapi/inc/class.setup_translation.inc.php index 28647ffb51..89183dd9c2 100644 --- a/phpgwapi/inc/class.setup_translation.inc.php +++ b/phpgwapi/inc/class.setup_translation.inc.php @@ -60,7 +60,9 @@ $fp = fopen($fn,'r'); while ($data = fgets($fp,8000)) { - list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); +// this is not working if mbstring.overloading = 7 and the content contains a special char +// list($message_id,$app_name,$null,$content) = explode("\t",substr($data,0,-1)); + list($message_id,$app_name,$null,$content) = split("[\t\n]",$data); $this->langarray[strtolower(trim($message_id))] = $content; } fclose($fp);