r76260 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76259‎ | r76260 | r76261 >
Date:18:50, 7 November 2010
Author:ialex
Status:deferred
Tags:
Comment:
Add categorysearch database table to the tables to be created for parser tests
Modified paths:
  • /trunk/extensions/AdvancedSearch/AdvancedSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AdvancedSearch/AdvancedSearch.php
@@ -43,6 +43,7 @@
4444 $wgHooks['LoadExtensionSchemaUpdates'][] = 'AdvancedSearchSchemaUpdate';
4545 $wgHooks['LinksUpdate'][] = 'AdvancedSearchCategoryIntersector::LinksUpdate';
4646 $wgHooks['ArticleDeleteComplete'][] = 'AdvancedSearchCategoryIntersector::ArticleDeleteComplete';
 47+$wgHooks['ParserTestTables'][] = 'AdvancedSearchAddTable';
4748
4849 function AdvancedSearchLocalizedPageName( &$specialPageArray, $code ) {
4950 wfLoadExtensionMessages( 'AdvancedSearch' );
@@ -63,3 +64,8 @@
6465 }
6566 return true;
6667 }
 68+
 69+function AdvancedSearchAddTable( &$tables ) {
 70+ $tables[] = 'categorysearch';
 71+ return true;
 72+}

Status & tagging log