From 1b94225ce6d8420718e21d0834211a5a1224c5e8 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 3 Feb 2021 12:00:51 +0100 Subject: Code cleanup: Replace call_user_func* with normal function call equivalent --- it_url.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it_url.class') 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))) { -- cgit v1.2.3