http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76260

Revision: 76260
Author:   ialex
Date:     2010-11-07 18:50:13 +0000 (Sun, 07 Nov 2010)
Log Message:
-----------
Add categorysearch database table to the tables to be created for parser tests

Modified Paths:
--------------
    trunk/extensions/AdvancedSearch/AdvancedSearch.php

Modified: trunk/extensions/AdvancedSearch/AdvancedSearch.php
===================================================================
--- trunk/extensions/AdvancedSearch/AdvancedSearch.php  2010-11-07 18:45:05 UTC 
(rev 76259)
+++ trunk/extensions/AdvancedSearch/AdvancedSearch.php  2010-11-07 18:50:13 UTC 
(rev 76260)
@@ -43,6 +43,7 @@
 $wgHooks['LoadExtensionSchemaUpdates'][] = 'AdvancedSearchSchemaUpdate';
 $wgHooks['LinksUpdate'][] = 'AdvancedSearchCategoryIntersector::LinksUpdate';
 $wgHooks['ArticleDeleteComplete'][] = 
'AdvancedSearchCategoryIntersector::ArticleDeleteComplete';
+$wgHooks['ParserTestTables'][] = 'AdvancedSearchAddTable';
 
 function AdvancedSearchLocalizedPageName( &$specialPageArray, $code ) {
        wfLoadExtensionMessages( 'AdvancedSearch' );
@@ -63,3 +64,8 @@
        }
        return true;
 }
+
+function AdvancedSearchAddTable( &$tables ) {
+       $tables[] = 'categorysearch';
+       return true;
+}


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to