From: Andrew Garrett Date: Wed, 12 Mar 2008 05:11:09 +0000 (+0000) Subject: * (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy. X-Git-Tag: 1.31.0-rc.0~49164 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=c54dc5f530a3ad2d6cadb83a23ccdf61c0db5b5a;p=lhc%2Fweb%2Fwiklou.git * (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy. --- 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; }