aboutsummaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 52df169..bd4af2a 100644
--- a/lib.php
+++ b/lib.php
@@ -179,8 +179,10 @@ P;
global $_t;
- $_t[$s] = trim(str_replace(array('{ok}', '{OK}', '{Ok}', '{oK}'), '', $_t[$s]));
- return array_key_exists($s, $_t) ? $_t[$s] : $s;
+ $s = array_key_exists($s, $_t) ? $_t[$s] : $s;
+ $s = trim(str_replace(array('{ok}', '{OK}', '{Ok}', '{oK}'), '', $s));
+
+ return $s;
}
}