Index: trunk/phase3/includes/specials/SpecialShortpages.php |
— | — | @@ -86,23 +86,22 @@ |
87 | 87 | } |
88 | 88 | |
89 | 89 | function formatResult( $skin, $result ) { |
90 | | - global $wgLang; |
91 | | - $dm = $wgLang->getDirMark(); |
| 90 | + $dm = $this->getLang()->getDirMark(); |
92 | 91 | |
93 | 92 | $title = Title::makeTitle( $result->namespace, $result->title ); |
94 | 93 | if ( !$title ) { |
95 | 94 | return '<!-- Invalid title ' . htmlspecialchars( "{$result->namespace}:{$result->title}" ). '-->'; |
96 | 95 | } |
97 | | - $hlink = $skin->linkKnown( |
| 96 | + $hlink = Linker::linkKnown( |
98 | 97 | $title, |
99 | 98 | wfMsgHtml( 'hist' ), |
100 | 99 | array(), |
101 | 100 | array( 'action' => 'history' ) |
102 | 101 | ); |
103 | 102 | $plink = $this->isCached() |
104 | | - ? $skin->link( $title ) |
105 | | - : $skin->linkKnown( $title ); |
106 | | - $size = wfMessage( 'nbytes', $wgLang->formatNum( $result->value ) )->escaped(); |
| 103 | + ? Linker::link( $title ) |
| 104 | + : Linker::linkKnown( $title ); |
| 105 | + $size = $this->msg( 'nbytes' )->numParams( $result->value )->escaped(); |
107 | 106 | |
108 | 107 | return $title->exists() |
109 | 108 | ? "({$hlink}) {$dm}{$plink} {$dm}[{$size}]" |