From c54dc5f530a3ad2d6cadb83a23ccdf61c0db5b5a Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 12 Mar 2008 05:11:09 +0000 Subject: [PATCH] * (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy. --- RELEASE-NOTES | 1 + includes/SpecialUnusedtemplates.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3a1e67dadb..8100b84fc1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -80,6 +80,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13281) Treat X-Forwarded-For, Client-ip and User-Agent headers as case-insensitive names. * Adding the fix for lists in RTL wikis to more skins, and fixing the image toc +* (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy. === API changes in 1.13 === diff --git a/includes/SpecialUnusedtemplates.php b/includes/SpecialUnusedtemplates.php index 79e99f3a90..89642f1738 100644 --- a/includes/SpecialUnusedtemplates.php +++ b/includes/SpecialUnusedtemplates.php @@ -22,7 +22,8 @@ class UnusedtemplatesPage extends QueryPage { FROM $page LEFT JOIN $templatelinks ON page_namespace = tl_namespace AND page_title = tl_title - WHERE page_namespace = 10 AND tl_from IS NULL"; + WHERE page_namespace = 10 AND tl_from IS NULL + AND page_is_redirect = 0"; return $sql; } -- 2.20.1