diff options
author | Christian Schneider | 2021-02-03 12:00:51 +0100 |
---|---|---|
committer | Christian Schneider | 2021-02-03 12:00:51 +0100 |
commit | 1b94225ce6d8420718e21d0834211a5a1224c5e8 (patch) | |
tree | 8961c9b72f61a27a52a7d1ad0fe7be348a2ddeeb /it_text.class | |
parent | 21ccdefc4aea4c2439f7d41ece7d8216d8ba8b40 (diff) | |
download | itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.gz itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.bz2 itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.zip |
Code cleanup: Replace call_user_func* with normal function call equivalent
Diffstat (limited to 'it_text.class')
-rw-r--r-- | it_text.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class index d91ed27..07b0e7a 100644 --- a/it_text.class +++ b/it_text.class @@ -243,7 +243,7 @@ static function transmogrify($text, $values = null, $label = null, $allowedfuncs } } else - $value = (list($func, $arg) = it::match('^([\w:]+)\((.*)\)$', $part)) && isset($allowedfuncs[$func]) ? call_user_func($func, $arg) : "{" . $part . "}"; + $value = (list($func, $arg) = it::match('^([\w:]+)\((.*)\)$', $part)) && isset($allowedfuncs[$func]) ? $func($arg) : "{" . $part . "}"; $result .= $GLOBALS['debug_texts'] ? "</span>$value<span style='background:#8F8'>" : $value; } |