<?php
+/**
+ * @file
+ * @ingroup SpecialPage
+ */
/**
+ * implements Special:Unusedtemplates
* @author Rob Church <robchur@gmail.com>
* @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 {
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;
}
}
function getPageHeader() {
- global $wgOut;
- return $wgOut->parse( wfMsg( 'unusedtemplatestext' ) );
+ return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) );
}
}
$utp = new UnusedtemplatesPage();
$utp->doQuery( $offset, $limit );
}
-
-?>