Index: trunk/phase3/includes/specials/SpecialPopularpages.php |
— | — | @@ -36,6 +36,7 @@ |
37 | 37 | # page_counter is not indexed |
38 | 38 | return true; |
39 | 39 | } |
| 40 | + |
40 | 41 | function isSyndicated() { return false; } |
41 | 42 | |
42 | 43 | function getQueryInfo() { |
— | — | @@ -54,17 +55,13 @@ |
55 | 56 | * @return string |
56 | 57 | */ |
57 | 58 | function formatResult( $skin, $result ) { |
58 | | - global $wgLang, $wgContLang; |
| 59 | + global $wgContLang; |
59 | 60 | $title = Title::makeTitle( $result->namespace, $result->title ); |
60 | | - $link = $skin->linkKnown( |
| 61 | + $link = Linker::linkKnown( |
61 | 62 | $title, |
62 | 63 | htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) |
63 | 64 | ); |
64 | | - $nv = wfMsgExt( |
65 | | - 'nviews', |
66 | | - array( 'parsemag', 'escape'), |
67 | | - $wgLang->formatNum( $result->value ) |
68 | | - ); |
69 | | - return wfSpecialList($link, $nv); |
| 65 | + $nv = $this->msg( 'nviews' )->numParams( $result->value )->escaped(); |
| 66 | + return wfSpecialList($link, $nv ); |
70 | 67 | } |
71 | 68 | } |