aboutsummaryrefslogtreecommitdiffstats
path: root/_nav
diff options
context:
space:
mode:
Diffstat (limited to '_nav')
-rw-r--r--_nav/lib.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/_nav/lib.php b/_nav/lib.php
index 52df1693c..bd4af2a52 100644
--- a/_nav/lib.php
+++ b/_nav/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;
}
}