X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fchanges%2FEnhancedChangesList.php;h=d2c4dd48fab375c5ff85da7900b1ed66efdcd26a;hb=f74400487fdb4c48833f566524d4079bce098250;hp=8f32ba20078a2ce44632e55cd410686cc2e626b6;hpb=a3b4288eacd34869b13f59782b73c9ddb75e3523;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 8f32ba2007..d2c4dd48fa 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -1,4 +1,7 @@ unpatrolled, $block[0]->watched ); } - $queryParams['curid'] = $curId; + $queryParams = [ 'curid' => $curId ]; # Sub-entries $lines = []; @@ -409,7 +412,7 @@ class EnhancedChangesList extends ChangesList { if ( $type == RC_LOG ) { $link = htmlspecialchars( $rcObj->timestamp ); # Revision link - } elseif ( !ChangesList::userCan( $rcObj, Revision::DELETED_TEXT, $this->getUser() ) ) { + } elseif ( !ChangesList::userCan( $rcObj, RevisionRecord::DELETED_TEXT, $this->getUser() ) ) { $link = Html::element( 'span', [ 'class' => 'history-deleted' ], $rcObj->timestamp ); } else { $link = $this->linkRenderer->makeKnownLink( @@ -418,7 +421,7 @@ class EnhancedChangesList extends ChangesList { [], $params ); - if ( static::isDeleted( $rcObj, Revision::DELETED_TEXT ) ) { + if ( static::isDeleted( $rcObj, RevisionRecord::DELETED_TEXT ) ) { $link = '' . $link . ' '; } } @@ -552,7 +555,7 @@ class EnhancedChangesList extends ChangesList { if ( $isnew || $rcObj->mAttribs['rc_type'] == RC_CATEGORIZE || - !ChangesList::userCan( $rcObj, Revision::DELETED_TEXT, $this->getUser() ) + !ChangesList::userCan( $rcObj, RevisionRecord::DELETED_TEXT, $this->getUser() ) ) { $links['total-changes'] = Html::rawElement( 'span', [], $nchanges[$n] ); } else { @@ -629,7 +632,7 @@ class EnhancedChangesList extends ChangesList { protected function recentChangesBlockLine( $rcObj ) { $data = []; - $query['curid'] = $rcObj->mAttribs['rc_cur_id']; + $query = [ 'curid' => $rcObj->mAttribs['rc_cur_id'] ]; $type = $rcObj->mAttribs['rc_type']; $logType = $rcObj->mAttribs['rc_log_type'];