diff options
author | Christian Schneider | 2021-01-13 16:22:52 +0100 |
---|---|---|
committer | Christian Schneider | 2021-01-13 16:22:52 +0100 |
commit | afee193f732619645e7156788c15902e70a0257d (patch) | |
tree | f4e879af9718ff5b5209e14a86201b41bc23cd86 /it_text.class | |
parent | 4f7f5e4b1fd1077ad134860b32203810ef24c0ce (diff) | |
download | itools-afee193f732619645e7156788c15902e70a0257d.tar.gz itools-afee193f732619645e7156788c15902e70a0257d.tar.bz2 itools-afee193f732619645e7156788c15902e70a0257d.zip |
Unified } else { missed in first iteration
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; |