(bug 31345) document API Revisions parameters as enum
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 20 Oct 2011 14:28:41 +0000 (14:28 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 20 Oct 2011 14:28:41 +0000 (14:28 +0000)
Patch by Brad Jorsch.

CREDITS
includes/api/ApiQueryRevisions.php

diff --git a/CREDITS b/CREDITS
index 444d27a..5e7ee58 100644 (file)
--- a/CREDITS
+++ b/CREDITS
@@ -11,6 +11,7 @@ following names for their contribution to the product.
 * Ashar Voultoiz
 * Brian Wolff
 * Bertrand Grondin
+* Brad Jorsch
 * Brion Vibber
 * Bryan Tong Minh
 * Chad Horohoe
index 431cc27..018449a 100644 (file)
@@ -609,9 +609,9 @@ class ApiQueryRevisions extends ApiQueryBase {
                        'endid' => 'Stop revision enumeration on this revid (enum)',
                        'start' => 'From which revision timestamp to start enumeration (enum)',
                        'end' => 'Enumerate up to this timestamp (enum)',
-                       'dir' => $this->getDirectionDescription( $p ),
-                       'user' => 'Only include revisions made by user',
-                       'excludeuser' => 'Exclude revisions made by user',
+                       'dir' => $this->getDirectionDescription( $p, ' (enum)' ),
+                       'user' => 'Only include revisions made by user (enum)',
+                       'excludeuser' => 'Exclude revisions made by user (enum)',
                        'expandtemplates' => 'Expand templates in revision content',
                        'generatexml' => 'Generate XML parse tree for revision content',
                        'parse' => 'Parse revision content. For performance reasons if this option is used, rvlimit is enforced to 1.',