From 1ce8d3f0bdb5e610dd62ec41dbcd5c5163190106 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 13 Apr 2005 04:18:24 +0000 Subject: [PATCH] More robust at handling hyphens (bug 2899) --- admin/lang.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/lang.php b/admin/lang.php index 218783660b4..bdeba67abdc 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -252,12 +252,12 @@ $cols=50; if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) { $rows = ceil($valuelen / $cols); - echo ''."\n"; + echo ''."\n"; } else { if ($valuelen) { $cols = $valuelen + 2; } - echo ''; + echo ''; } echo ''; @@ -305,7 +305,7 @@ function lang_save_file($path, $file, $strings) { ksort($strings); foreach ($strings as $key => $value) { - list($id, $stringname) = explode("-",$key); + list($id, $stringname) = explode('XXX',$key); if ($CFG->lang != "zh_hk" and $CFG->lang != "zh_tw") { // Some MB languages include backslash bytes $value = str_replace("\\","",$value); // Delete all slashes }