From 95027be62c350966e9882b25372b9a8f0967cb28 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 20 Oct 2011 14:28:41 +0000 Subject: [PATCH] (bug 31345) document API Revisions parameters as enum Patch by Brad Jorsch. --- CREDITS | 1 + includes/api/ApiQueryRevisions.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CREDITS b/CREDITS index 444d27ad35..5e7ee58997 100644 --- 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 diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 431cc27f41..018449acef 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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.', -- 2.20.1