* (bug 12611) Bot flag ignored in recent changes
authorVictor Vasiliev <vasilievvv@users.mediawiki.org>
Sun, 13 Jan 2008 17:58:14 +0000 (17:58 +0000)
committerVictor Vasiliev <vasilievvv@users.mediawiki.org>
Sun, 13 Jan 2008 17:58:14 +0000 (17:58 +0000)
RELEASE-NOTES
includes/Article.php

index 1ecb203..4f3ba94 100644 (file)
@@ -124,7 +124,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added exception hooks
 * (bug 12574) Allow bots to specify whether an edit should be marked as a bot
   edit, via the parameter 'bot'. (Default: '1')
-
+* (bug 12611) Bot flag ignored in recent changes
 
 === Bug fixes in 1.12 ===
 
index 0481f2d..37a836e 100644 (file)
@@ -1204,7 +1204,8 @@ class Article {
        function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false, $comment=false, $bot=false ) {
                $flags = EDIT_NEW | EDIT_DEFER_UPDATES | EDIT_AUTOSUMMARY |
                        ( $isminor ? EDIT_MINOR : 0 ) |
-                       ( $suppressRC ? EDIT_SUPPRESS_RC : 0 );
+                       ( $suppressRC ? EDIT_SUPPRESS_RC : 0 ) |
+                       ( $bot ? EDIT_FORCE_BOT : 0 );
 
                # If this is a comment, add the summary as headline
                if ( $comment && $summary != "" ) {