From: Antoine Musso Date: Thu, 20 Oct 2011 14:28:41 +0000 (+0000) Subject: (bug 31345) document API Revisions parameters as enum X-Git-Tag: 1.31.0-rc.0~26985 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=95027be62c350966e9882b25372b9a8f0967cb28;p=lhc%2Fweb%2Fwiklou.git (bug 31345) document API Revisions parameters as enum Patch by Brad Jorsch. --- 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.',