From b1bee4e2762fdfa966c252b4f1084504816f21ab Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 5 Apr 2013 17:09:18 +0200 Subject: [PATCH] Call ApiPageSet::getFinalParamDescription This allows extensions to modify the param description of the ApiPageSet params at once for each module, which used the ApiPageSet. Change-Id: I2ed6f3ad38d3d84182b8525a6b247f721be7f460 --- includes/api/ApiImageRotate.php | 2 +- includes/api/ApiPurge.php | 2 +- includes/api/ApiQuery.php | 2 +- includes/api/ApiSetNotificationTimestamp.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index db82805d50..e4642dd763 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -196,7 +196,7 @@ class ApiImageRotate extends ApiBase { public function getParamDescription() { $pageSet = $this->getPageSet(); - return $pageSet->getParamDescription() + array( + return $pageSet->getFinalParamDescription() + array( 'rotation' => 'Degrees to rotate image clockwise', 'token' => 'Edit token. You can get one of these through action=tokens', ); diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 134f4a0d39..49cc738e58 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -158,7 +158,7 @@ class ApiPurge extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + return $this->getPageSet()->getFinalParamDescription() + array( 'forcelinkupdate' => 'Update the links tables' ); } diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 02c1b27fa3..4d9a772b11 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -696,7 +696,7 @@ class ApiQuery extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + array( + return $this->getPageSet()->getFinalParamDescription() + array( 'prop' => 'Which properties to get for the titles/revisions/pageids. Module help is available below', 'list' => 'Which lists to get. Module help is available below', 'meta' => 'Which metadata to get about the site. Module help is available below', diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index 58d5d9abe9..cae967340d 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -212,7 +212,7 @@ class ApiSetNotificationTimestamp extends ApiBase { } public function getParamDescription() { - return $this->getPageSet()->getParamDescription() + array( + return $this->getPageSet()->getFinalParamDescription() + array( 'entirewatchlist' => 'Work on all watched pages', 'timestamp' => 'Timestamp to which to set the notification timestamp', 'torevid' => 'Revision to set the notification timestamp to (one page only)', -- 2.20.1