X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFewestrevisions.php;h=27d17f632c697d5276cc7aab8f686ddcbe8492f3;hb=eac38f23a305244db9787ccedd2d3a1007330592;hp=6d621a2e6412888bcce2d8639dd793330f9a2f08;hpb=12c72771b092dc5f3ba5025b7128d01d640b17dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestrevisions.php index 6d621a2e64..27d17f632c 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestrevisions.php @@ -70,30 +70,26 @@ class FewestrevisionsPage extends QueryPage { * @param $result Object: database row */ function formatResult( $skin, $result ) { - global $wgLang, $wgContLang; + global $wgContLang; $nt = Title::makeTitleSafe( $result->namespace, $result->title ); if( !$nt ) { return ''; } - $text = $wgContLang->convert( $nt->getPrefixedText() ); + $text = htmlspecialchars( $wgContLang->convert( $nt->getPrefixedText() ) ); + $plink = Linker::linkKnown( $nt, $text ); - $plink = $skin->linkKnown( - $nt, - $text - ); - - $nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape' ), - $wgLang->formatNum( $result->value ) ); - $redirect = $result->redirect ? ' - ' . wfMsgHtml( 'isredirect' ) : ''; - $nlink = $skin->linkKnown( + $nl = $this->msg( 'nrevisions' )->numParams( $result->value )->escaped(); + $redirect = isset( $result->redirect ) && $result->redirect ? + ' - ' . wfMsgHtml( 'isredirect' ) : ''; + $nlink = Linker::linkKnown( $nt, $nl, array(), array( 'action' => 'history' ) ) . $redirect; - return wfSpecialList( $plink, $nlink ); + return $this->getLanguage()->specialList( $plink, $nlink ); } }