From 139e02787f6895699a8fa6e8918784d85ac3963d Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 15 Jun 2006 07:29:00 +0000 Subject: [PATCH] (bug 4054) Add "boteditletter" to recent changes flags --- RELEASE-NOTES | 1 + includes/ChangesList.php | 18 ++++++++++-------- languages/Messages.php | 1 + skins/monobook/main.css | 2 +- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bfd2013eed..a0974456df 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -496,6 +496,7 @@ Some default configuration options have changed: * (bug 6296) Update to Indonesian localisation (id) #21 * Introduce EditFormPreloadText hook, see docs/hooks.txt for more information * (bug 6095) Introduce RunUnknownJob hook, see docs/hooks.txt for more information +* (bug 4054) Add "boteditletter" to recent changes flags == Compatibility == diff --git a/includes/ChangesList.php b/includes/ChangesList.php index a34b496683..4588c0467b 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -56,7 +56,7 @@ class ChangesList { // 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') ); } } @@ -64,13 +64,14 @@ class ChangesList { /** - * 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 ? '' . $this->message['newpageletter'] . '' : $nothing; $f .= $minor ? '' . $this->message['minoreditletter'] . '' : $nothing; + $f .= $bot ? '' . $this->message['boteditletter'] . '' : $nothing; $f .= $patrolled ? '!' : $nothing; return $f; } @@ -243,8 +244,8 @@ class OldChangesList extends ChangesList { $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'); @@ -402,6 +403,7 @@ class EnhancedChangesList extends ChangesList { if( $rcObj->unpatrolled ) { $unpatrolled = true; } + $bot = $rcObj->mAttribs['rc_bot']; $userlinks[$u]++; } @@ -430,7 +432,7 @@ class EnhancedChangesList extends ChangesList { # Main line $r .= ''; - $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled ); + $r .= $this->recentChangesFlags( $isnew, false, $unpatrolled, '', $bot ); # Timestamp $r .= ' '.$block[0]->timestamp.' '; @@ -474,7 +476,7 @@ class EnhancedChangesList extends ChangesList { $r .= $this->spacerArrow(); $r .= '       '; - $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled ); + $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled, '', $rc_bot ); $r .= ' '; $o = ''; @@ -580,7 +582,7 @@ class EnhancedChangesList extends ChangesList { 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.' '; diff --git a/languages/Messages.php b/languages/Messages.php index ffdc0131ea..3b1c11364d 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -787,6 +787,7 @@ Unselected groups will not be changed. You can deselect a group with CTRL + Left 'show' => 'Show', 'minoreditletter' => 'm', 'newpageletter' => 'N', +'boteditletter' => 'b', 'sectionlink' => '→', 'number_of_watching_users_RCview' => '[$1]', 'number_of_watching_users_pageview' => '[$1 watching user/s]', diff --git a/skins/monobook/main.css b/skins/monobook/main.css index 2aa0114929..e8c59346bc 100644 --- a/skins/monobook/main.css +++ b/skins/monobook/main.css @@ -1176,7 +1176,7 @@ div.patrollink { font-size: 75%; text-align: right; } -span.newpage, span.minor, span.searchmatch { +span.newpage, span.minor, span.searchmatch, span.bot { font-weight: bold; } span.unpatrolled { -- 2.20.1