From 45060393ea1cc4b94f19e895adf121127508714e Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 13 Nov 2004 20:40:28 +0000 Subject: [PATCH] Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=705 Stop showing rss / atom feeds links for various special pages. --- includes/SpecialAncientpages.php | 2 ++ includes/SpecialBrokenRedirects.php | 1 + includes/SpecialCategories.php | 2 ++ includes/SpecialDeadendpages.php | 2 ++ includes/SpecialDisambiguations.php | 1 + includes/SpecialDoubleRedirects.php | 1 + includes/SpecialListusers.php | 1 + includes/SpecialLonelypages.php | 1 + includes/SpecialPopularpages.php | 1 + includes/SpecialShortpages.php | 1 + includes/SpecialUncategorizedpages.php | 1 + includes/SpecialUnusedimages.php | 1 + includes/SpecialWantedpages.php | 1 + 13 files changed, 16 insertions(+) diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php index 60a42fa959..f799cc2cb4 100644 --- a/includes/SpecialAncientpages.php +++ b/includes/SpecialAncientpages.php @@ -24,6 +24,8 @@ class AncientPagesPage extends QueryPage { function isExpensive() { return parent::isExpensive() ; } + + function isSyndicated() { return false; } function getSQL() { $db =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialBrokenRedirects.php b/includes/SpecialBrokenRedirects.php index d717606dcd..a42415405e 100644 --- a/includes/SpecialBrokenRedirects.php +++ b/includes/SpecialBrokenRedirects.php @@ -22,6 +22,7 @@ class BrokenRedirectsPage extends PageQueryPage { } function isExpensive( ) { return true; } + function isSyndicated() { return false; } function getPageHeader( ) { #FIXME : probably need to add a backlink to the maintenance page. diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 3b2cac5c6d..977484bfc9 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -25,6 +25,8 @@ class CategoriesPage extends QueryPage { return false; } + function isSyndicated() { return false; } + function getPageHeader() { return '

'.wfMsg('categoriespagetext')."


\n"; } diff --git a/includes/SpecialDeadendpages.php b/includes/SpecialDeadendpages.php index 9b18bb5996..2b15db6e26 100644 --- a/includes/SpecialDeadendpages.php +++ b/includes/SpecialDeadendpages.php @@ -29,6 +29,8 @@ class DeadendPagesPage extends PageQueryPage { function isExpensive( ) { return 1; } + + function isSyndicated() { return false; } /** * @return false diff --git a/includes/SpecialDisambiguations.php b/includes/SpecialDisambiguations.php index 4eaedc3be4..0243e05dac 100644 --- a/includes/SpecialDisambiguations.php +++ b/includes/SpecialDisambiguations.php @@ -22,6 +22,7 @@ class DisambiguationsPage extends PageQueryPage { } function isExpensive( ) { return true; } + function isSyndicated() { return false; } function getPageHeader( ) { global $wgUser; diff --git a/includes/SpecialDoubleRedirects.php b/includes/SpecialDoubleRedirects.php index 126ef2be04..1f21a3f232 100644 --- a/includes/SpecialDoubleRedirects.php +++ b/includes/SpecialDoubleRedirects.php @@ -22,6 +22,7 @@ class DoubleRedirectsPage extends PageQueryPage { } function isExpensive( ) { return true; } + function isSyndicated() { return false; } function getPageHeader( ) { #FIXME : probably need to add a backlink to the maintenance page. diff --git a/includes/SpecialListusers.php b/includes/SpecialListusers.php index bde94bba73..a44901b390 100644 --- a/includes/SpecialListusers.php +++ b/includes/SpecialListusers.php @@ -44,6 +44,7 @@ class ListUsersPage extends QueryPage { function getName() { return "Listusers"; } + function isSyndicated() { return false; } /** * Show a drop down list to select a group as well as a user name diff --git a/includes/SpecialLonelypages.php b/includes/SpecialLonelypages.php index 64c3e001b9..d8d97d81f7 100644 --- a/includes/SpecialLonelypages.php +++ b/includes/SpecialLonelypages.php @@ -28,6 +28,7 @@ class LonelyPagesPage extends PageQueryPage { function isExpensive() { return true; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialPopularpages.php b/includes/SpecialPopularpages.php index 640d7889f0..ca96168aa6 100644 --- a/includes/SpecialPopularpages.php +++ b/includes/SpecialPopularpages.php @@ -25,6 +25,7 @@ class PopularPagesPage extends QueryPage { # cur_counter is not indexed return true; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index c854e55104..3faf483854 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -25,6 +25,7 @@ class ShortPagesPage extends QueryPage { function isExpensive() { return true; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialUncategorizedpages.php b/includes/SpecialUncategorizedpages.php index fc58e4566f..2d56ce9df6 100755 --- a/includes/SpecialUncategorizedpages.php +++ b/includes/SpecialUncategorizedpages.php @@ -28,6 +28,7 @@ class UncategorizedPagesPage extends PageQueryPage { function isExpensive() { return true; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialUnusedimages.php b/includes/SpecialUnusedimages.php index 574899b7bd..9a0f25387d 100644 --- a/includes/SpecialUnusedimages.php +++ b/includes/SpecialUnusedimages.php @@ -20,6 +20,7 @@ class UnusedimagesPage extends QueryPage { function sortDescending() { return false; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); diff --git a/includes/SpecialWantedpages.php b/includes/SpecialWantedpages.php index 6171022431..1a59ae5df9 100644 --- a/includes/SpecialWantedpages.php +++ b/includes/SpecialWantedpages.php @@ -24,6 +24,7 @@ class WantedPagesPage extends QueryPage { function isExpensive() { return true; } + function isSyndicated() { return false; } function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); -- 2.20.1