From b2d9d4c4bc7efc8a87d1f2f0007f50e760ea2fa0 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 16 Aug 2007 20:41:33 +0000 Subject: [PATCH] (bug 7890) Don't list redirects to special pages in Special:BrokenRedirects There could be some issues here, since a redirect to a special page that doesn't exist *is* "broken", but I don't think we have a clear, clean means of excluding these at present... --- RELEASE-NOTES | 1 + includes/SpecialBrokenRedirects.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 59a7fe91b5..681a8f2289 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -386,6 +386,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Fix syntax error in translations of magic words in Romanian language * (bug 8737) Fix warnings caused by incorrect use of `/dev/null` when piping process error output under Windows +* (bug 7890) Don't list redirects to special pages in Special:BrokenRedirects == API changes since 1.10 == diff --git a/includes/SpecialBrokenRedirects.php b/includes/SpecialBrokenRedirects.php index 9b3f8092ff..1fb48350c6 100644 --- a/includes/SpecialBrokenRedirects.php +++ b/includes/SpecialBrokenRedirects.php @@ -35,7 +35,8 @@ class BrokenRedirectsPage extends PageQueryPage { FROM $redirect AS rd JOIN $page p1 ON (rd.rd_from=p1.page_id) LEFT JOIN $page AS p2 ON (rd_namespace=p2.page_namespace AND rd_title=p2.page_title ) - WHERE p2.page_namespace IS NULL"; + WHERE rd_namespace >= 0 + AND p2.page_namespace IS NULL"; return $sql; } -- 2.20.1