From de33ce98597f4fed13600bff5572a43cc078647b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 19 Oct 2005 01:39:12 +0000 Subject: [PATCH] * Added the querypages to $wgQueryPages that were missing --- includes/QueryPage.php | 44 +++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 60bbd57ff4..7dc4740a79 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -16,28 +16,36 @@ global $wgQueryPages; // not redundant $wgQueryPages = array( // QueryPage subclass Special page name Limit (false for none, none for the default) //---------------------------------------------------------------------------- - array( 'AncientPagesPage', 'Ancientpages' ), - array( 'BrokenRedirectsPage', 'BrokenRedirects' ), - array( 'DeadendPagesPage', 'Deadendpages' ), - array( 'DisambiguationsPage', 'Disambiguations' ), - array( 'DoubleRedirectsPage', 'DoubleRedirects' ), - array( 'ListUsersPage', 'Listusers' ), - array( 'LonelyPagesPage', 'Lonelypages' ), - array( 'LongPagesPage', 'Longpages' ), - array( 'NewPagesPage', 'Newpages' ), - array( 'ShortPagesPage', 'Shortpages' ), - array( 'UncategorizedCategoriesPage','Uncategorizedcategories'), - array( 'UncategorizedPagesPage', 'Uncategorizedpages'), - array( 'UnusedimagesPage', 'Unusedimages' ), - array( 'WantedPagesPage', 'Wantedpages' ), - array( 'MostlinkedPage', 'Mostlinked' ), + array( 'AncientPagesPage', 'Ancientpages' ), + array( 'BrokenRedirectsPage', 'BrokenRedirects' ), + array( 'CategoriesPage', 'Categories' ), + array( 'DeadendPagesPage', 'Deadendpages' ), + array( 'DisambiguationsPage', 'Disambiguations' ), + array( 'DoubleRedirectsPage', 'DoubleRedirects' ), + array( 'ListUsersPage', 'Listusers' ), + array( 'LonelyPagesPage', 'Lonelypages' ), + array( 'LongPagesPage', 'Longpages' ), + array( 'MostcategoriesPage', 'Mostcategories' ), + array( 'MostimagesPage', 'Mostimages' ), + array( 'MostlinkedPage', 'Mostlinked' ), + array( 'MostrevisionsPage', 'Mostrevisions' ), + array( 'NewPagesPage', 'Newpages' ), + array( 'ShortPagesPage', 'Shortpages' ), + array( 'UncategorizedCategoriesPage', 'Uncategorizedcategories' ), + array( 'UncategorizedPagesPage', 'Uncategorizedpages' ), + array( 'UnusedCategoriesPage', 'Unusedcategories' ), + array( 'UnusedimagesPage', 'Unusedimages' ), + array( 'WantedPagesPage', 'Wantedpages' ), ); wfRunHooks( 'wgQueryPages', array( &$wgQueryPages ) ); global $wgDisableCounters; -if( !$wgDisableCounters ) { - $wgQueryPages[] = array( 'PopularPagesPage', 'Popularpages' ); -} +if ( !$wgDisableCounters ) + $wgQueryPages[] = array( 'PopularPagesPage', 'Popularpages' ); +global $wgEnableUnwatchedpages; +if ( $wgEnableUnwatchedpages ) + $wgQueryPages[] = array( 'UnwatchedPagesPage', 'Unwatchedpages' ); + /** * This is a class for doing query pages; since they're almost all the same, -- 2.20.1