Popularpages is not a valid special page when counters are disable. That
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 15 Jul 2005 23:56:58 +0000 (23:56 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 15 Jul 2005 23:56:58 +0000 (23:56 +0000)
blocked the updateSpecialPages.php maintenance script.

includes/QueryPage.php

index 2371444..8c6e110 100644 (file)
@@ -24,7 +24,6 @@ $wgQueryPages = array(
     array( 'LonelyPagesPage',           'Lonelypages'       ),
     array( 'LongPagesPage',             'Longpages'         ),
     array( 'NewPagesPage',              'Newpages'          ),
-    array( 'PopularPagesPage',          'Popularpages'      ),
     array( 'ShortPagesPage',            'Shortpages'        ),
     array( 'UncategorizedCategoriesPage','Uncategorizedcategories'),
     array( 'UncategorizedPagesPage',    'Uncategorizedpages'),
@@ -32,7 +31,10 @@ $wgQueryPages = array(
     array( 'WantedPagesPage',           'Wantedpages'       ),
 );
     
-
+global $wgDisableCounters;
+if( !$wgDisableCounters ) {
+       $wgQueryPages[] = array( 'PopularPagesPage',          'Popularpages'      );
+}
 
 /**
  * This is a class for doing query pages; since they're almost all the same,