X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialUnusedtemplates.php;h=89acd09c75b424acb20c8b3df3ef88689862c3aa;hb=8b643b3077486487caf8c1bd252f3a6ebc1cd487;hp=033066dbcf9690508a8497ebbbc24fa2387d9da0;hpb=9648f3b4d0f55e0767fd24f3ec2b2b03985d78c0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialUnusedtemplates.php b/includes/SpecialUnusedtemplates.php index 033066dbcf..89acd09c75 100644 --- a/includes/SpecialUnusedtemplates.php +++ b/includes/SpecialUnusedtemplates.php @@ -1,10 +1,15 @@ * @copyright © 2006 Rob Church * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later - * @addtogroup SpecialPage + * @ingroup SpecialPage */ class UnusedtemplatesPage extends QueryPage { @@ -21,7 +26,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; } @@ -36,8 +42,7 @@ class UnusedtemplatesPage extends QueryPage { } function getPageHeader() { - global $wgOut; - return $wgOut->parse( wfMsg( 'unusedtemplatestext' ) ); + return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) ); } } @@ -47,5 +52,3 @@ function wfSpecialUnusedtemplates() { $utp = new UnusedtemplatesPage(); $utp->doQuery( $offset, $limit ); } - -?>