* @ingroup RevisionDelete
*/
+use MediaWiki\Revision\RevisionRecord;
+
/**
* Item class for a logging table row
*/
}
public function canView() {
- return LogEventsList::userCan( $this->row, Revision::DELETED_RESTRICTED, $this->list->getUser() );
+ return LogEventsList::userCan(
+ $this->row, RevisionRecord::DELETED_RESTRICTED, $this->list->getUser()
+ );
}
public function canViewContent() {
$dbw->update( 'recentchanges',
[
'rc_deleted' => $bits,
- 'rc_patrolled' => RecentChange::PRC_PATROLLED
+ 'rc_patrolled' => RecentChange::PRC_AUTOPATROLLED
],
[
'rc_logid' => $this->row->log_id,
$loglink = $this->list->msg( 'parentheses' )->rawParams( $loglink )->escaped();
// User links and action text
$action = $formatter->getActionText();
- // Comment
+
$comment = CommentStore::getStore()->getComment( 'log_comment', $this->row )->text;
$comment = $this->list->getLanguage()->getDirMark()
. Linker::commentBlock( $comment );