summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
authorChristian Schneider2021-01-13 16:22:52 +0100
committerChristian Schneider2021-01-13 16:22:52 +0100
commitafee193f732619645e7156788c15902e70a0257d (patch)
treef4e879af9718ff5b5209e14a86201b41bc23cd86 /it_text.class
parent4f7f5e4b1fd1077ad134860b32203810ef24c0ce (diff)
downloaditools-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.class3
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;