From: Roan Kattouw Date: Tue, 10 Feb 2009 16:01:50 +0000 (+0000) Subject: API: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output X-Git-Tag: 1.31.0-rc.0~42945 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=2293460cbf9182127b18da7b959880780691de5a;p=lhc%2Fweb%2Fwiklou.git API: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 615a872af9..b99c334fc3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -186,6 +186,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 11430) BREAKING CHANGE: Modules may return fewer results than the limit and still set a query-continue in some cases * (bug 17357) Added movesubpages parameter to action=move +* (bug 17433) Added bot flag to list=watchlist&wlprop=flags output === Languages updated in 1.15 === diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index f620085794..8865a71542 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -92,6 +92,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { $this->addFieldsIf('rc_new', $this->fld_flags); $this->addFieldsIf('rc_minor', $this->fld_flags); + $this->addFieldsIf('rc_bot', $this->fld_flags); $this->addFieldsIf('rc_user', $this->fld_user); $this->addFieldsIf('rc_user_text', $this->fld_user); $this->addFieldsIf('rc_comment', $this->fld_comment); @@ -233,6 +234,8 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { $vals['new'] = ''; if ($row->rc_minor) $vals['minor'] = ''; + if ($row->rc_bot) + $vals['bot'] = ''; } if ($this->fld_patrol && isset($row->rc_patrolled))