<?php
+
+use MediaWiki\Storage\RevisionRecord;
+
/**
* Generates a list of changes using an Enhanced system (uses javascript).
*
$block[0], $block[0]->unpatrolled, $block[0]->watched );
}
- $queryParams['curid'] = $curId;
+ $queryParams = [ 'curid' => $curId ];
# Sub-entries
$lines = [];
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(
[],
$params
);
- if ( static::isDeleted( $rcObj, Revision::DELETED_TEXT ) ) {
+ if ( static::isDeleted( $rcObj, RevisionRecord::DELETED_TEXT ) ) {
$link = '<span class="history-deleted">' . $link . '</span> ';
}
}
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 {
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'];