From 623bc4de15ab01692214857054f0771f5aa38bc7 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Fri, 25 May 2012 23:08:11 +0000 Subject: cleanup string on output --- langs.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'langs.inc.php') diff --git a/langs.inc.php b/langs.inc.php index 25545da9e..85ee95c95 100644 --- a/langs.inc.php +++ b/langs.inc.php @@ -163,7 +163,7 @@ function _d($s = null, $opt = null) { global $_t; } - return ($s == '' ? '---' : (array_key_exists($s, $_t) ? $_t[$s] : $s)); + return trim(str_replace('{ok}', '', ($s == '' ? '---' : (array_key_exists($s, $_t) ? $_t[$s] : $s)))); } /** @@ -197,7 +197,7 @@ function _lang_return($file) if ($C === '#') continue; if ($C === ';' && !empty($f[$k+1])) { - $strings[trim(substr($v, 1))] = trim(str_replace('{ok}', '', $f[$k+1])); + $strings[trim(substr($v, 1))] = trim($f[$k+1]); } } -- cgit v1.2.1