return $formatter->getActionText() . " $mark" . $formatter->getComment();
}
+ /**
+ * Insert a formatted comment
+ * @param $rc RecentChange
+ */
+ public function insertComment( $rc ) {
+ if( $rc->mAttribs['rc_type'] != RC_MOVE && $rc->mAttribs['rc_type'] != RC_MOVE_OVER_REDIRECT ) {
+ if( $this->isDeleted( $rc, Revision::DELETED_COMMENT ) ) {
+ return ' <span class="history-deleted">' . wfMsgHtml( 'rev-deleted-comment' ) . '</span>';
+ } else {
+ return Linker::commentBlock( $rc->mAttribs['rc_comment'], $rc->getTitle() );
+ }
+ }
+ }
+
/**
* Check whether to enable recent changes patrol features
* @return Boolean
$this->insertUserRelatedLinks( $s, $rc );
# LTR/RTL direction mark
$s .= $this->getLang()->getDirMark();
+ $s .= $this->insertComment( $rc );
}
# Tags
# User links
$r .= $rcObj->userlink;
$r .= $rcObj->usertalklink;
+ $r .= $this->insertComment( $rcObj );
}
# Rollback
$r .= $this->insertLogEntry( $rcObj );
} else {
$r .= ' '.$rcObj->userlink . $rcObj->usertalklink;
+ $r .= $this->insertComment( $rcObj );
+ $r .= $this->insertRollback( $r, $rcObj );
}
# Tags