Index: trunk/extensions/LiquidThreads/LqtFunctions.php |
— | — | @@ -135,5 +135,6 @@ |
136 | 136 | |
137 | 137 | $wgParser->setFunctionHook( 'useliquidthreads', |
138 | 138 | array( 'LqtParserFunctions', 'useLiquidThreads' ) ); |
| 139 | + return true; |
139 | 140 | } |
140 | 141 | |
Index: trunk/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -41,7 +41,11 @@ |
42 | 42 | $wgExtensionAliasesFiles['LiquidThreads'] = $dir . 'i18n/Lqt.alias.php'; |
43 | 43 | |
44 | 44 | // Parser Function Setup |
45 | | -$wgExtensionFunctions[] = 'lqtSetupParserFunctions'; |
| 45 | +if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
| 46 | + $wgHooks['ParserFirstCallInit'][] = 'lqtSetupParserFunctions'; |
| 47 | +} else { |
| 48 | + $wgExtensionFunctions[] = 'lqtSetupParserFunctions'; |
| 49 | +} |
46 | 50 | |
47 | 51 | // Hooks |
48 | 52 | $wgHooks['SpecialWatchlistQuery'][] = 'efLqtBeforeWatchlistHook'; |