From 2293460cbf9182127b18da7b959880780691de5a Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 10 Feb 2009 16:01:50 +0000 Subject: [PATCH] API: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output --- RELEASE-NOTES | 1 + includes/api/ApiQueryWatchlist.php | 3 +++ 2 files changed, 4 insertions(+) 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)) -- 2.20.1