From 8c53d3578cef739b5f337f4172b7819a44898a06 Mon Sep 17 00:00:00 2001 From: Steve Sanbeg Date: Tue, 2 Jun 2009 19:13:32 +0000 Subject: [PATCH] try to load hooks before testing them, so we can text Cite (discussion in bug 18890) --- maintenance/parserTests.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index 4ccc9328b9..77ffaa495d 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -1032,6 +1032,7 @@ class ParserTest { */ private function requireHook( $name ) { global $wgParser; + $wgParser->firstCallInit( ); //make sure hooks are loaded. if( isset( $wgParser->mTagHooks[$name] ) ) { $this->hooks[$name] = $wgParser->mTagHooks[$name]; } else { @@ -1047,6 +1048,7 @@ class ParserTest { */ private function requireFunctionHook( $name ) { global $wgParser; + $wgParser->firstCallInit( ); //make sure hooks are loaded. if( isset( $wgParser->mFunctionHooks[$name] ) ) { $this->functionHooks[$name] = $wgParser->mFunctionHooks[$name]; } else { -- 2.20.1