From 34a05f2652cbefaa477c240e6930da32d50dd05a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 15 Jul 2005 23:56:58 +0000 Subject: [PATCH] Popularpages is not a valid special page when counters are disable. That blocked the updateSpecialPages.php maintenance script. --- includes/QueryPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.20.1