dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19eb20b
)
try to load hooks before testing them, so we can text Cite (discussion in bug 18890)
author
Steve Sanbeg
<sanbeg@users.mediawiki.org>
Tue, 2 Jun 2009 19:13:32 +0000
(19:13 +0000)
committer
Steve Sanbeg
<sanbeg@users.mediawiki.org>
Tue, 2 Jun 2009 19:13:32 +0000
(19:13 +0000)
maintenance/parserTests.inc
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.inc
b/maintenance/parserTests.inc
index
4ccc932
..
77ffaa4
100644
(file)
--- 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 {