From: Alexandre Emsenhuber Date: Sat, 22 Oct 2011 05:06:54 +0000 (+0000) Subject: * Call Linker methods statically X-Git-Tag: 1.31.0-rc.0~26966 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=540943b176b69e708d5ca1a39ec2aad376cf487b;p=lhc%2Fweb%2Fwiklou.git * Call Linker methods statically * Use local context to get messages --- diff --git a/includes/specials/SpecialUnusedcategories.php b/includes/specials/SpecialUnusedcategories.php index e4b8e544b1..48a93e8d3c 100644 --- a/includes/specials/SpecialUnusedcategories.php +++ b/includes/specials/SpecialUnusedcategories.php @@ -33,7 +33,7 @@ class UnusedCategoriesPage extends QueryPage { } function getPageHeader() { - return wfMsgExt( 'unusedcategoriestext', array( 'parse' ) ); + return $this->msg( 'unusedcategoriestext' )->parseAsBlock(); } function getQueryInfo() { @@ -59,6 +59,6 @@ class UnusedCategoriesPage extends QueryPage { function formatResult( $skin, $result ) { $title = Title::makeTitle( NS_CATEGORY, $result->title ); - return $skin->link( $title, $title->getText() ); + return Linker::link( $title, htmlspecialchars( $title->getText() ) ); } }