Index: trunk/extensions/CategoryIntersection/CategoryIntersection.php |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | |
36 | 36 | $wgHooks['LinksUpdate'][] = 'CategoryIntersectionLinksUpdate'; |
37 | 37 | $wgHooks['ArticleDelete'][] = 'CategoryIntersectionArticleDelete'; |
| 38 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'efCategoryIntersectionSchemaUpdates'; |
| 39 | +$wgHooks['ParserTestTables'][] = 'efCategoryIntersectionParserTestTables'; |
38 | 40 | |
39 | 41 | $wgAutoloadClasses['CategoryIntersection'] = $dir . 'CategoryIntersection_body.php'; # Tell MediaWiki to load the extension body. |
40 | 42 | $wgExtensionMessagesFiles['CategoryIntersection'] = $dir . 'CategoryIntersection.i18n.php'; |
— | — | @@ -93,8 +95,6 @@ |
94 | 96 | } |
95 | 97 | |
96 | 98 | # new tables needed (based on how ReaderFeedback extension does it) |
97 | | -$wgHooks['LoadExtensionSchemaUpdates'][] = 'efCategoryIntersectionSchemaUpdates'; |
98 | | - |
99 | 99 | function efCategoryIntersectionSchemaUpdates( $updater = null ) { |
100 | 100 | $base = dirname( __FILE__ ); |
101 | 101 | if ( $updater === null ) { |
— | — | @@ -110,3 +110,7 @@ |
111 | 111 | return true; |
112 | 112 | } |
113 | 113 | |
| 114 | +function efCategoryIntersectionParserTestTables( &$tables ) { |
| 115 | + $tables[] = 'categoryintersections'; |
| 116 | + return true; |
| 117 | +} |
\ No newline at end of file |