From: Steve Sanbeg Date: Tue, 2 Jun 2009 19:13:32 +0000 (+0000) Subject: try to load hooks before testing them, so we can text Cite (discussion in bug 18890) X-Git-Tag: 1.31.0-rc.0~41537 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=8c53d3578cef739b5f337f4172b7819a44898a06;p=lhc%2Fweb%2Fwiklou.git try to load hooks before testing them, so we can text Cite (discussion in bug 18890) --- 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 {