From: Alexandre Emsenhuber Date: Wed, 15 Feb 2012 16:21:58 +0000 (+0000) Subject: * Use local context to get messages X-Git-Tag: 1.31.0-rc.0~24701 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=ff14ebb5f1698c7aad944cdcafd9b8bd5188b8c3;p=lhc%2Fweb%2Fwiklou.git * Use local context to get messages * Link to Special:Whatlinkshere/Page instead of Special:Whatlinkshere?target=Page for consistency * Removed to useless empty lines --- 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(); } - } -