From 1e7eceaac7561edea4344b647da77dd7cff2e96f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 20 Nov 2007 21:26:48 +0000 Subject: [PATCH] Revert r27694 -- if you're seeing this problem, it's probably because you're pulling things out of $wgParser->mFunctionHooks and copying it to another parser without knowing the internal format has changed. That should be fixed whereever that's being done (as it was fixed on the parser tests.) --- includes/Parser.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 2de8f9c7e4..26f0f986b9 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3182,13 +3182,6 @@ class Parser $allArgs = array_merge( $initialArgs, $funcArgs ); } - if (! is_callable($callback)) { - if (is_array($callback)) - $callback = $callback[0]; - else - die ("\nInvalid callback for $function: '$callback' ($flags)\n"); - } - $result = call_user_func_array( $callback, $allArgs ); $found = true; -- 2.20.1