(bug 4054) Add "boteditletter" to recent changes flags
authorRob Church <robchurch@users.mediawiki.org>
Thu, 15 Jun 2006 07:29:00 +0000 (07:29 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 15 Jun 2006 07:29:00 +0000 (07:29 +0000)
RELEASE-NOTES
includes/ChangesList.php
languages/Messages.php
skins/monobook/main.css

index bfd2013..a097445 100644 (file)
@@ -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 ==
 
index a34b496..4588c04 100644 (file)
@@ -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 = '&nbsp;' ) {
+       function recentChangesFlags( $new, $minor, $patrolled, $nothing = '&nbsp;', $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;
        }
@@ -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 .= '<tt>';
-               $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 .= '<tt>&nbsp; &nbsp; &nbsp; &nbsp;';
-                       $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled );
+                       $r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled, '', $rc_bot );
                        $r .= '&nbsp;</tt>';
 
                        $o = '';
@@ -580,7 +582,7 @@ class EnhancedChangesList extends ChangesList {
                if( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
                        $r .= '&nbsp;&nbsp;&nbsp;';
                } else {
-                       $r .= $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $rcObj->unpatrolled );
+                       $r .= $this->recentChangesFlags( $rc_type == RC_NEW, $rc_minor, $rcObj->unpatrolled, '&nbsp;', $rc_bot );
                }
                $r .= ' '.$rcObj->timestamp.' </tt>';
 
index ffdc013..3b1c113 100644 (file)
@@ -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]',
index 2aa0114..e8c5934 100644 (file)
@@ -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 {