Index: trunk/extensions/ArticleEmblems/ArticleEmblems.hooks.php |
— | — | @@ -23,6 +23,14 @@ |
24 | 24 | return true; |
25 | 25 | } |
26 | 26 | |
| 27 | + /** |
| 28 | + * ParserTestTables hook |
| 29 | + */ |
| 30 | + public static function parserTestTables( &$tables ) { |
| 31 | + $tables[] = 'articleemblems'; |
| 32 | + return true; |
| 33 | + } |
| 34 | + |
27 | 35 | /* |
28 | 36 | * ParserInit hook |
29 | 37 | */ |
Index: trunk/extensions/ArticleEmblems/ArticleEmblems.php |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | $wgExtensionMessagesFiles['ArticleEmblems'] = dirname( __FILE__ ) . '/ArticleEmblems.i18n.php'; |
26 | 26 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'ArticleEmblemsHooks::loadExtensionSchemaUpdates'; |
27 | 27 | $wgHooks['ParserFirstCallInit'][] = 'ArticleEmblemsHooks::parserInit'; |
| 28 | +$wgHooks['ParserTestTables'][] = 'ArticleEmblemsHooks::parserTestTables'; |
28 | 29 | $wgHooks['ArticleViewHeader'][] = 'ArticleEmblemsHooks::articleViewHeader'; |
29 | 30 | $wgHooks['ArticleSaveComplete'][] = 'ArticleEmblemsHooks::articleSaveComplete'; |
30 | 31 | $wgHooks['ResourceLoaderRegisterModules'][] = 'ArticleEmblemsHooks::resourceLoaderRegisterModules'; |
\ No newline at end of file |