From e8f13f87ebe461f5b72c057ce57fccc767b3dd4d Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 19 Oct 2017 17:51:20 +0200 Subject: revert to old behaviour for now, some T() calls in map drawings want unmodified {foo} --- auto_prepend.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'auto_prepend.php') diff --git a/auto_prepend.php b/auto_prepend.php index ba42293..f4f0b1c 100644 --- a/auto_prepend.php +++ b/auto_prepend.php @@ -82,9 +82,7 @@ function T($label, $language = null, $values = null) if (is_array($language)) # Need to swap params? list($language, $values) = array($values, $language); - $result = $GLOBALS['it_text']->text($label, $language); - - return strpos($result, "{") === false ? $result : it_text::transmogrify($result, array_map(array("it_html", "Q"), (array)$values), $label, $GLOBALS['it_text']->allowedfuncs); + return is_array($values) ? $GLOBALS['it_text']->etext($label, array_map(array("it_html", "Q"), $values), $language) : $GLOBALS['it_text']->text($label, $language); } /** -- cgit v1.2.3