Index: trunk/phase3/includes/specials/SpecialFewestrevisions.php |
— | — | @@ -70,25 +70,21 @@ |
71 | 71 | * @param $result Object: database row |
72 | 72 | */ |
73 | 73 | function formatResult( $skin, $result ) { |
74 | | - global $wgLang, $wgContLang; |
| 74 | + global $wgContLang; |
75 | 75 | |
76 | 76 | $nt = Title::makeTitleSafe( $result->namespace, $result->title ); |
77 | 77 | if( !$nt ) { |
78 | 78 | return '<!-- bad title -->'; |
79 | 79 | } |
80 | 80 | |
81 | | - $text = $wgContLang->convert( $nt->getPrefixedText() ); |
| 81 | + $text = htmlspecialchars( $wgContLang->convert( $nt->getPrefixedText() ) ); |
| 82 | + $plink = Linker::linkKnown( $nt, $text ); |
82 | 83 | |
83 | | - $plink = $skin->linkKnown( |
| 84 | + $nl = $this->msg( 'nrevisions' )->numParams( $result->value )->escaped(); |
| 85 | + $redirect = isset( $result->redirect ) && $result->redirect ? |
| 86 | + ' - ' . wfMsgHtml( 'isredirect' ) : ''; |
| 87 | + $nlink = Linker::linkKnown( |
84 | 88 | $nt, |
85 | | - $text |
86 | | - ); |
87 | | - |
88 | | - $nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape' ), |
89 | | - $wgLang->formatNum( $result->value ) ); |
90 | | - $redirect = isset( $result->redirect ) ? ' - ' . wfMsgHtml( 'isredirect' ) : ''; |
91 | | - $nlink = $skin->linkKnown( |
92 | | - $nt, |
93 | 89 | $nl, |
94 | 90 | array(), |
95 | 91 | array( 'action' => 'history' ) |