r100499 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100498‎ | r100499 | r100500 >
Date:05:06, 22 October 2011
Author:ialex
Status:ok
Tags:
Comment:
* Call Linker methods statically
* Use local context to get messages
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUnusedcategories.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUnusedcategories.php
@@ -33,7 +33,7 @@
3434 }
3535
3636 function getPageHeader() {
37 - return wfMsgExt( 'unusedcategoriestext', array( 'parse' ) );
 37+ return $this->msg( 'unusedcategoriestext' )->parseAsBlock();
3838 }
3939
4040 function getQueryInfo() {
@@ -59,6 +59,6 @@
6060
6161 function formatResult( $skin, $result ) {
6262 $title = Title::makeTitle( NS_CATEGORY, $result->title );
63 - return $skin->link( $title, $title->getText() );
 63+ return Linker::link( $title, htmlspecialchars( $title->getText() ) );
6464 }
6565 }

Status & tagging log