From 27abff7ea593287d89b479e0a163f05f1bfc8a42 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sun, 13 Jan 2008 17:58:14 +0000 Subject: [PATCH] * (bug 12611) Bot flag ignored in recent changes --- RELEASE-NOTES | 3 ++- includes/Article.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1ecb203fbf..4f3ba94596 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Article.php b/includes/Article.php index 0481f2d1c3..37a836ec21 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 != "" ) { -- 2.20.1