From: Antoine Musso Date: Fri, 15 Jul 2005 23:56:58 +0000 (+0000) Subject: Popularpages is not a valid special page when counters are disable. That X-Git-Tag: 1.5.0beta4~121 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=34a05f2652cbefaa477c240e6930da32d50dd05a;p=lhc%2Fweb%2Fwiklou.git Popularpages is not a valid special page when counters are disable. That blocked the updateSpecialPages.php maintenance script. --- diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 2371444aba..8c6e110364 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -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,