r111554 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111553‎ | r111554 | r111555 >
Date:16:21, 15 February 2012
Author:ialex
Status:ok
Tags:
Comment:
* Use local context to get messages
* Link to Special:Whatlinkshere/Page instead of Special:Whatlinkshere?target=Page for consistency
* Removed to useless empty lines
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUnusedtemplates.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUnusedtemplates.php
@@ -68,17 +68,13 @@
6969 array( 'redirect' => 'no' )
7070 );
7171 $wlhLink = Linker::linkKnown(
72 - SpecialPage::getTitleFor( 'Whatlinkshere' ),
73 - wfMsgHtml( 'unusedtemplateswlh' ),
74 - array(),
75 - array( 'target' => $title->getPrefixedText() )
 72+ SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedText() ),
 73+ $this->msg( 'unusedtemplateswlh' )->escaped()
7674 );
7775 return $this->getLanguage()->specialList( $pageLink, $wlhLink );
7876 }
7977
8078 function getPageHeader() {
81 - return wfMsgExt( 'unusedtemplatestext', array( 'parse' ) );
 79+ return $this->msg( 'unusedtemplatestext' )->parseAsBlock();
8280 }
83 -
8481 }
85 -

Status & tagging log