* (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy.
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 12 Mar 2008 05:11:09 +0000 (05:11 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 12 Mar 2008 05:11:09 +0000 (05:11 +0000)
RELEASE-NOTES
includes/SpecialUnusedtemplates.php

index 3a1e67d..8100b84 100644 (file)
@@ -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 ===
 
index 79e99f3..89642f1 100644 (file)
@@ -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;
        }