From ff14ebb5f1698c7aad944cdcafd9b8bd5188b8c3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 15 Feb 2012 16:21:58 +0000 Subject: [PATCH] * Use local context to get messages * Link to Special:Whatlinkshere/Page instead of Special:Whatlinkshere?target=Page for consistency * Removed to useless empty lines --- includes/specials/SpecialUnusedtemplates.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/includes/specials/SpecialUnusedtemplates.php b/includes/specials/SpecialUnusedtemplates.php index e5c55b8341..0928e261bd 100644 --- a/includes/specials/SpecialUnusedtemplates.php +++ b/includes/specials/SpecialUnusedtemplates.php @@ -68,17 +68,13 @@ class UnusedtemplatesPage extends QueryPage { array( 'redirect' => 'no' ) ); $wlhLink = Linker::linkKnown( - SpecialPage::getTitleFor( 'Whatlinkshere' ), - wfMsgHtml( 'unusedtemplateswlh' ), - array(), - array( 'target' => $title->getPrefixedText() ) + SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ), + $this->msg( 'unusedtemplateswlh' )->escaped() ); return $this->getLanguage()->specialList( $pageLink, $wlhLink ); } function getPageHeader() { - return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) ); + return $this->msg( 'unusedtemplatestext' )->parseAsBlock(); } - } - -- 2.20.1