From f35eb86c45c9e5ea2570447537a95210e16b9781 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 20 Nov 2007 13:16:14 +0000 Subject: [PATCH] Fix regression in parser testing with parser function hooks; format of internal structure changed, affecting copying of hooks from main to test parser. --- maintenance/parserTests.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 3c0fbb8e96..0677179d8b 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -284,8 +284,9 @@ class ParserTest { foreach( $this->hooks as $tag => $callback ) { $parser->setHook( $tag, $callback ); } - foreach( $this->functionHooks as $tag => $callback ) { - $parser->setFunctionHook( $tag, $callback ); + foreach( $this->functionHooks as $tag => $bits ) { + list( $callback, $flags ) = $bits; + $parser->setFunctionHook( $tag, $callback, $flags ); } wfRunHooks( 'ParserTestParser', array( &$parser ) ); -- 2.20.1