From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/specials/SpecialPopularpages.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'includes/specials/SpecialPopularpages.php') diff --git a/includes/specials/SpecialPopularpages.php b/includes/specials/SpecialPopularpages.php index 7c7190ad..803f03e7 100644 --- a/includes/specials/SpecialPopularpages.php +++ b/includes/specials/SpecialPopularpages.php @@ -36,6 +36,7 @@ class PopularPagesPage extends QueryPage { # page_counter is not indexed return true; } + function isSyndicated() { return false; } function getQueryInfo() { @@ -54,17 +55,13 @@ class PopularPagesPage extends QueryPage { * @return string */ function formatResult( $skin, $result ) { - global $wgLang, $wgContLang; + global $wgContLang; $title = Title::makeTitle( $result->namespace, $result->title ); - $link = $skin->linkKnown( + $link = Linker::linkKnown( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); - $nv = wfMsgExt( - 'nviews', - array( 'parsemag', 'escape'), - $wgLang->formatNum( $result->value ) - ); - return wfSpecialList($link, $nv); + $nv = $this->msg( 'nviews' )->numParams( $result->value )->escaped(); + return $this->getLanguage()->specialList( $link, $nv ); } } -- cgit v1.2.3-54-g00ecf