r74183 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74182‎ | r74183 | r74184 >
Date:01:54, 3 October 2010
Author:brion
Status:deferred (Comments)
Tags:
Comment:
CategoryIntersection: add the custom table to the parser test temp tables
Modified paths:
  • /trunk/extensions/CategoryIntersection/CategoryIntersection.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryIntersection/CategoryIntersection.php
@@ -34,6 +34,8 @@
3535
3636 $wgHooks['LinksUpdate'][] = 'CategoryIntersectionLinksUpdate';
3737 $wgHooks['ArticleDelete'][] = 'CategoryIntersectionArticleDelete';
 38+$wgHooks['LoadExtensionSchemaUpdates'][] = 'efCategoryIntersectionSchemaUpdates';
 39+$wgHooks['ParserTestTables'][] = 'efCategoryIntersectionParserTestTables';
3840
3941 $wgAutoloadClasses['CategoryIntersection'] = $dir . 'CategoryIntersection_body.php'; # Tell MediaWiki to load the extension body.
4042 $wgExtensionMessagesFiles['CategoryIntersection'] = $dir . 'CategoryIntersection.i18n.php';
@@ -93,8 +95,6 @@
9496 }
9597
9698 # new tables needed (based on how ReaderFeedback extension does it)
97 -$wgHooks['LoadExtensionSchemaUpdates'][] = 'efCategoryIntersectionSchemaUpdates';
98 -
9999 function efCategoryIntersectionSchemaUpdates( $updater = null ) {
100100 $base = dirname( __FILE__ );
101101 if ( $updater === null ) {
@@ -110,3 +110,7 @@
111111 return true;
112112 }
113113
 114+function efCategoryIntersectionParserTestTables( &$tables ) {
 115+ $tables[] = 'categoryintersections';
 116+ return true;
 117+}
\ No newline at end of file

Comments

#Comment by Nikerabbit (talk | contribs)   07:19, 3 October 2010
\ No newline at end of file

Why am I lately seeing this a lot more often?

Status & tagging log