aboutsummaryrefslogtreecommitdiffstats
path: root/langs.inc.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-05-25 23:08:11 +0000
committerRomain d'Alverny <rda@mageia.org>2012-05-25 23:08:11 +0000
commit623bc4de15ab01692214857054f0771f5aa38bc7 (patch)
treeee1b8f61679463b93cdb03ee9ed246eb6d96227b /langs.inc.php
parent6a6993066d2f196c69fcc9ab30acef9be709a7f9 (diff)
downloadwww-623bc4de15ab01692214857054f0771f5aa38bc7.tar
www-623bc4de15ab01692214857054f0771f5aa38bc7.tar.gz
www-623bc4de15ab01692214857054f0771f5aa38bc7.tar.bz2
www-623bc4de15ab01692214857054f0771f5aa38bc7.tar.xz
www-623bc4de15ab01692214857054f0771f5aa38bc7.zip
cleanup string on output
Diffstat (limited to 'langs.inc.php')
-rw-r--r--langs.inc.php4
1 files changed, 2 insertions, 2 deletions
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]);
}
}