API: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 10 Feb 2009 16:01:50 +0000 (16:01 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 10 Feb 2009 16:01:50 +0000 (16:01 +0000)
RELEASE-NOTES
includes/api/ApiQueryWatchlist.php

index 615a872..b99c334 100644 (file)
@@ -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 ===
 
index f620085..8865a71 100644 (file)
@@ -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))