(bug 11562) API: Added a user_registration parameter/field to the list=allusers query...
[lhc/web/wiklou.git] / includes / SpecialUnusedtemplates.php
index 4414fa0..79e99f3 100644 (file)
@@ -1,17 +1,12 @@
 <?php
 
 /**
- * @addtogroup Special pages
- *
+ * 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
  */
-
 class UnusedtemplatesPage extends QueryPage {
 
        function getName() { return( 'Unusedtemplates' ); }
@@ -20,7 +15,7 @@ class UnusedtemplatesPage extends QueryPage {
        function sortDescending() { return false; }
 
        function getSQL() {
-               $dbr =& wfGetDB( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                list( $page, $templatelinks) = $dbr->tableNamesN( 'page', 'templatelinks' );
                $sql = "SELECT 'Unusedtemplates' AS type, page_title AS title,
                        page_namespace AS namespace, 0 AS value
@@ -42,8 +37,7 @@ class UnusedtemplatesPage extends QueryPage {
        }
 
        function getPageHeader() {
-               global $wgOut;
-               return $wgOut->parse( wfMsg( 'unusedtemplatestext' ) );
+               return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) );
        }
 
 }
@@ -54,4 +48,4 @@ function wfSpecialUnusedtemplates() {
        $utp->doQuery( $offset, $limit );
 }
 
-?>
+