Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.php |
— | — | @@ -184,7 +184,10 @@ |
185 | 185 | } |
186 | 186 | |
187 | 187 | # Add Extension Functions |
188 | | -$wgExtensionFunctions[] = 'wfWikiArticleFeedsParserSetup'; |
| 188 | +if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) |
| 189 | + $wgHooks['ParserFirstCallInit'][] = 'wfWikiArticleFeedsParserSetup'; |
| 190 | +else |
| 191 | + $wgExtensionFunctions[] = 'wfWikiArticleFeedsParserSetup'; |
189 | 192 | |
190 | 193 | # Sets up the WikiArticleFeeds Parser hooks |
191 | 194 | function wfWikiArticleFeedsParserSetup() { |
— | — | @@ -196,6 +199,7 @@ |
197 | 200 | $wgParser->setHook( 'itemTags', array( $wgWikiArticleFeedsParser, 'itemTagsTag' ) ); |
198 | 201 | |
199 | 202 | $wgParser->setFunctionHook( 'itemtags', array( $wgWikiArticleFeedsParser, 'itemTagsFunction' ) ); |
| 203 | + return true; |
200 | 204 | } |
201 | 205 | |
202 | 206 | # Attach Hooks |