Index: trunk/extensions/UsabilityInitiative/UserDailyContribs/UserDailyContribs.php |
— | — | @@ -41,3 +41,4 @@ |
42 | 42 | // Hooked functions |
43 | 43 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'UserDailyContribsHooks::schema'; |
44 | 44 | $wgHooks['ArticleSaveComplete'][] = 'UserDailyContribsHooks::storeNewContrib'; |
| 45 | +$wgHooks['ParserTestTables'][] = 'UserDailyContribsHooks::parserTestTables'; |
Index: trunk/extensions/UsabilityInitiative/UserDailyContribs/UserDailyContribs.hooks.php |
— | — | @@ -20,6 +20,15 @@ |
21 | 21 | return true; |
22 | 22 | } |
23 | 23 | |
| 24 | + /** |
| 25 | + * Hook for making sure parser tests pass |
| 26 | + * @param $tables |
| 27 | + * @return unknown_type |
| 28 | + */ |
| 29 | + public static function parserTestTables( &$tables ) { |
| 30 | + $tables[] = 'user_daily_contribs'; |
| 31 | + return true; |
| 32 | + } |
24 | 33 | |
25 | 34 | /** |
26 | 35 | * Stores a new contribution |