From: Victor Vasiliev Date: Sun, 13 Jan 2008 17:58:14 +0000 (+0000) Subject: * (bug 12611) Bot flag ignored in recent changes X-Git-Tag: 1.31.0-rc.0~50028 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=27abff7ea593287d89b479e0a163f05f1bfc8a42;p=lhc%2Fweb%2Fwiklou.git * (bug 12611) Bot flag ignored in recent changes --- 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 != "" ) {