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_url.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_url.class')
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 0b90b1b..f00f5b6 100644 --- a/it_url.class +++ b/it_url.class @@ -623,9 +623,9 @@ static function get_cache($p = array()) $dstpath = "$path.preprocesstmp"; if (is_array($p['preprocess']) && $p['preprocess']['function']) # Needs is_array as it can be a string where dereferencing gives first character! - call_user_func($p['preprocess']['function'], array('in' => $srcpath, 'out' => $dstpath) + $p['preprocess']); + $p['preprocess']['function'](['in' => $srcpath, 'out' => $dstpath] + $p['preprocess']); else - call_user_func($p['preprocess'], $srcpath, $dstpath); + $p['preprocess']($srcpath, $dstpath); if (!($success = @filesize($dstpath) && @rename($dstpath, $path))) { |