$wgOut->parse( wfMsgForContent( 'history-feed-empty' ) ),
$this->title->getFullUrl(),
wfTimestamp( TS_MW ),
- '',
- $this->title->getTalkPage()->getFullUrl() );
+ '',
+ $this->title->getTalkPage()->getFullUrl()
+ );
}
/**
function feedItem( $row ) {
$rev = new Revision( $row );
$rev->setTitle( $this->title );
- $text = FeedUtils::formatDiffRow( $this->title,
- $this->title->getPreviousRevisionID( $rev->getId() ),
- $rev->getId(),
- $rev->getTimestamp(),
- $rev->getComment() );
-
+ $text = FeedUtils::formatDiffRow(
+ $this->title,
+ $this->title->getPreviousRevisionID( $rev->getId() ),
+ $rev->getId(),
+ $rev->getTimestamp(),
+ $rev->getComment()
+ );
if( $rev->getComment() == '' ) {
global $wgContLang;
$title = wfMsgForContent( 'history-feed-item-nocomment',
} else {
$title = $rev->getUserText() . wfMsgForContent( 'colon-separator' ) . FeedItem::stripComment( $rev->getComment() );
}
-
return new FeedItem(
$title,
$text,
$this->title->getFullUrl( 'diff=' . $rev->getId() . '&oldid=prev' ),
$rev->getTimestamp(),
$rev->getUserText(),
- $this->title->getTalkPage()->getFullUrl() );
+ $this->title->getTalkPage()->getFullUrl()
+ );
}
}
function formatRow( $row ) {
if( $this->lastRow ) {
- $latest = $this->counter == 1 && $this->mIsFirst;
+ $latest = ($this->counter == 1 && $this->mIsFirst);
$firstInList = $this->counter == 1;
$s = $this->historyLine( $this->lastRow, $row, $this->counter++,
$this->title->getNotificationTimestamp(), $latest, $firstInList );
$tools = array();
+ # Rollback and undo links
if( !is_null( $next ) && is_object( $next ) ) {
if( $latest && $this->title->userCan( 'rollback' ) && $this->title->userCan( 'edit' ) ) {
$tools[] = '<span class="mw-rollback-link">'.