diff options
Diffstat (limited to 'it_text.class')
-rw-r--r-- | it_text.class | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class index f575344..9c5b401 100644 --- a/it_text.class +++ b/it_text.class @@ -241,7 +241,8 @@ static function transmogrify($text, $values = null, $label = null, $allowedfuncs if ($value === null && $values && $label) # do not test in $GLOBALS mode it::error(array('title' => "No value given for text variable {" . $key ."} in label $label", 'backtraceskip' => 3)); } - } else + } + else $value = (list($func, $arg) = it::match('^([\w:]+)\((.*)\)$', $part)) && isset($allowedfuncs[$func]) ? call_user_func($func, $arg) : "{" . $part . "}"; $result .= $GLOBALS['debug_texts'] ? "</span>$value<span style='background:#8F8'>" : $value; |