diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/specials/SpecialMostlinked.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/specials/SpecialMostlinked.php')
-rw-r--r-- | includes/specials/SpecialMostlinked.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/includes/specials/SpecialMostlinked.php b/includes/specials/SpecialMostlinked.php index 58f686e8..a16f0872 100644 --- a/includes/specials/SpecialMostlinked.php +++ b/includes/specials/SpecialMostlinked.php @@ -77,12 +77,11 @@ class MostlinkedPage extends QueryPage { * * @param $title Title being queried * @param $caption String: text to display on the link - * @param $skin Skin to use * @return String */ - function makeWlhLink( &$title, $caption, &$skin ) { + function makeWlhLink( $title, $caption ) { $wlh = SpecialPage::getTitleFor( 'Whatlinkshere', $title->getPrefixedDBkey() ); - return $skin->linkKnown( $wlh, $caption ); + return Linker::linkKnown( $wlh, $caption ); } /** @@ -93,15 +92,13 @@ class MostlinkedPage extends QueryPage { * @return string */ function formatResult( $skin, $result ) { - global $wgLang; $title = Title::makeTitleSafe( $result->namespace, $result->title ); if ( !$title ) { return '<!-- ' . htmlspecialchars( "Invalid title: [[$title]]" ) . ' -->'; } - $link = $skin->link( $title ); + $link = Linker::link( $title ); $wlh = $this->makeWlhLink( $title, - wfMsgExt( 'nlinks', array( 'parsemag', 'escape'), - $wgLang->formatNum( $result->value ) ), $skin ); - return wfSpecialList( $link, $wlh ); + $this->msg( 'nlinks' )->numParams( $result->value )->escaped() ); + return $this->getLanguage()->specialList( $link, $wlh ); } } |