Merge "Resolve bug #18704 ("Add an unique CSS class or ID to the tagfilter table...
[lhc/web/wiklou.git] / includes / specials / SpecialUnusedtemplates.php
index cdb4ccb..0928e26 100644 (file)
@@ -54,26 +54,27 @@ class UnusedtemplatesPage extends QueryPage {
                );
        }
 
+       /**
+        * @param $skin Skin
+        * @param $result
+        * @return string
+        */
        function formatResult( $skin, $result ) {
                $title = Title::makeTitle( NS_TEMPLATE, $result->title );
-               $pageLink = $skin->linkKnown(
+               $pageLink = Linker::linkKnown(
                        $title,
                        null,
                        array(),
                        array( 'redirect' => 'no' )
                );
-               $wlhLink = $skin->linkKnown(
-                       SpecialPage::getTitleFor( 'Whatlinkshere' ),
-                       wfMsgHtml( 'unusedtemplateswlh' ),
-                       array(),
-                       array( 'target' => $title->getPrefixedText() )
+               $wlhLink = Linker::linkKnown(
+                       SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ),
+                       $this->msg( 'unusedtemplateswlh' )->escaped()
                );
-               return wfSpecialList( $pageLink, $wlhLink );
+               return $this->getLanguage()->specialList( $pageLink, $wlhLink );
        }
 
        function getPageHeader() {
-               return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) );
+               return $this->msg( 'unusedtemplatestext' )->parseAsBlock();
        }
-
 }
-