summaryrefslogtreecommitdiff
path: root/auto_prepend.php
diff options
context:
space:
mode:
authorUrban Müller2023-07-10 18:44:12 +0200
committerUrban Müller2023-07-10 18:44:12 +0200
commit838ce3a7a163502fb002f26645e70b3ff5d7294f (patch)
tree332aeadb9f1d1fdc08178a985cc3b62f22b41acf /auto_prepend.php
parent26cec3ea70f65b655e16a9ba88951a9050b646c2 (diff)
downloaditools-838ce3a7a163502fb002f26645e70b3ff5d7294f.tar.gz
itools-838ce3a7a163502fb002f26645e70b3ff5d7294f.tar.bz2
itools-838ce3a7a163502fb002f26645e70b3ff5d7294f.zip
always use etext() to support {U(/foo)} feature even in absence of values
Diffstat (limited to 'auto_prepend.php')
-rw-r--r--auto_prepend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_prepend.php b/auto_prepend.php
index 8d0a94e..d961a7b 100644
--- a/auto_prepend.php
+++ b/auto_prepend.php
@@ -74,7 +74,7 @@ function T($label, $language = null, $values = null)
if (is_array($language)) # Need to swap params?
list($language, $values) = array($values, $language);
- return is_array($values) ? $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), $values), $language) : $GLOBALS['it_text']->text($label, $language);
+ return $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), (array)$values), $language);
}
/**