X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fchanges%2FEnhancedChangesList.php;h=30c6995008b8c40851c6f12ebd9b5ac12cc2e91a;hb=7471e1db1b613d035f981f489f8683a177acff7e;hp=03f63f673f5e8157927d6fe162025fc19781f1b0;hpb=9af9555c532da70b4daf625910039e70280bf84d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 03f63f673f..30c6995008 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -98,7 +98,6 @@ class EnhancedChangesList extends ChangesList { * @return string */ public function recentChangesLine( &$rc, $watched = false, $linenumber = null ) { - $date = $this->getLanguage()->userDate( $rc->mAttribs['rc_timestamp'], $this->getUser() @@ -243,8 +242,7 @@ class EnhancedChangesList extends ChangesList { $text = $userlink; $text .= $this->getLanguage()->getDirMark(); if ( $count > 1 ) { - // @todo FIXME: Hardcoded '×'. Should be a message. - $formattedCount = $this->getLanguage()->formatNum( $count ) . '×'; + $formattedCount = $this->msg( 'ntimes' )->numParams( $count )->escaped(); $text .= ' ' . $this->msg( 'parentheses' )->rawParams( $formattedCount )->escaped(); } array_push( $users, $text ); @@ -686,7 +684,9 @@ class EnhancedChangesList extends ChangesList { } $attribs = $data['attribs']; unset( $data['attribs'] ); - $attribs = wfArrayFilterByKey( $attribs, [ Sanitizer::class, 'isReservedDataAttribute' ] ); + $attribs = wfArrayFilterByKey( $attribs, function ( $key ) { + return $key === 'class' || Sanitizer::isReservedDataAttribute( $key ); + } ); $line = Html::openElement( 'table', $attribs ) . Html::openElement( 'tr' ); $line .= '';