// Precache various messages
if( !isset( $this->message ) ) {
foreach( explode(' ', 'cur diff hist minoreditletter newpageletter last '.
- 'blocklink changes history' ) as $msg ) {
+ 'blocklink changes history boteditletter' ) as $msg ) {
$this->message[$msg] = wfMsgExt( $msg, array( 'escape') );
}
}
/**
- * Returns the appropiate flags for new page, minor change and patrolling
+ * Returns the appropriate flags for new page, minor change and patrolling
*/
- function recentChangesFlags( $new, $minor, $patrolled, $nothing = ' ' ) {
+ function recentChangesFlags( $new, $minor, $patrolled, $nothing = ' ', $bot = false ) {
$f = $new ? '<span class="newpage">' . $this->message['newpageletter'] . '</span>'
: $nothing;
$f .= $minor ? '<span class="minor">' . $this->message['minoreditletter'] . '</span>'
: $nothing;
+ $f .= $bot ? '<span class="bot">' . $this->message['boteditletter'] . '</span>' : $nothing;
$f .= $patrolled ? '<span class="unpatrolled">!</span>' : $nothing;
return $f;
}
$this->insertDiffHist($s, $rc, $unpatrolled);
- # M, N and ! (minor, new and unpatrolled)
- $s .= ' ' . $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $unpatrolled, '' );
+ # M, N, b and ! (minor, new, bot and unpatrolled)
+ $s .= ' ' . $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $unpatrolled, '', $rc_bot );
$this->insertArticleLink($s, $rc, $unpatrolled, $watched);
wfProfileOut($fname.'-page');
if( $rcObj->unpatrolled ) {
$unpatrolled = true;
}
+ $bot = $rcObj->mAttribs['rc_bot'];
$userlinks[$u]++;
}
# Main line
$r .= '<tt>';
- $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled );
+ $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled, '', $bot );
# Timestamp
$r .= ' '.$block[0]->timestamp.' ';
$r .= $this->spacerArrow();
$r .= '<tt> ';
- $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled );
+ $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled, '', $rc_bot );
$r .= ' </tt>';
$o = '';
if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
$r .= ' ';
} else {
- $r .= $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $rcObj->unpatrolled );
+ $r .= $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $rcObj->unpatrolled, ' ', $rc_bot );
}
$r .= ' '.$rcObj->timestamp.' </tt>';