From 1afd723c5bf8075e47b4e815fd4bc63023d9e5ea Mon Sep 17 00:00:00 2001 From: X! Date: Wed, 4 Aug 2010 14:29:39 +0000 Subject: [PATCH] Followup to r70460 and r70461: Use true instead of 1 --- includes/api/ApiBlock.php | 2 +- includes/api/ApiEditPage.php | 2 +- includes/api/ApiEmailUser.php | 4 ++-- includes/api/ApiMove.php | 2 +- includes/api/ApiPatrol.php | 2 +- includes/api/ApiProtect.php | 4 ++-- includes/api/ApiPurge.php | 2 +- includes/api/ApiQueryBacklinks.php | 2 +- includes/api/ApiRollback.php | 4 ++-- includes/api/ApiUndelete.php | 2 +- includes/api/ApiUpload.php | 2 +- includes/api/ApiUserrights.php | 2 +- 12 files changed, 15 insertions(+), 15 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index f597204fd2..ac2daa4d41 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -134,7 +134,7 @@ class ApiBlock extends ApiBase { return array( 'user' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'gettoken' => false, diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 90f11f7416..5b3afbe001 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -386,7 +386,7 @@ class ApiEditPage extends ApiBase { return array( 'title' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'section' => null, 'text' => null, diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index ad35c99d61..088f696966 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -85,12 +85,12 @@ class ApiEmailUser extends ApiBase { return array( 'target' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'subject' => null, 'text' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'ccme' => false, diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 4c52d3dc05..e3e7ab7a8c 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -171,7 +171,7 @@ class ApiMove extends ApiBase { ), 'to' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'reason' => null, diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 33fbe636d1..461c2cdeeb 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -67,7 +67,7 @@ class ApiPatrol extends ApiBase { 'token' => null, 'rcid' => array( ApiBase::PARAM_TYPE => 'integer', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), ); } diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 77c9f6d16c..0b7e30759e 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -145,12 +145,12 @@ class ApiProtect extends ApiBase { return array( 'title' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'protections' => array( ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_REQUIRED => 1, + ApiBase::PARAM_REQUIRED => true, ), 'expiry' => array( ApiBase::PARAM_ISMULTI => true, diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 7d3b8a7df4..dc2bac092f 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -84,7 +84,7 @@ class ApiPurge extends ApiBase { return array( 'titles' => array( ApiBase::PARAM_ISMULTI => true, - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ) ); } diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 6d22160446..04fe40517c 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -404,7 +404,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $retval = array( 'title' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'continue' => null, 'namespace' => array( diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 40a88dcae2..71e62eec0c 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -79,11 +79,11 @@ class ApiRollback extends ApiBase { return array( 'title' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'user' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'summary' => null, diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 6082ef00fb..2551d050ed 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -100,7 +100,7 @@ class ApiUndelete extends ApiBase { return array( 'title' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'token' => null, 'reason' => '', diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 8636fea85b..a6ba695e38 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -316,7 +316,7 @@ class ApiUpload extends ApiBase { $params = array( 'filename' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'comment' => array( ApiBase::PARAM_DFLT => '' diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index 28699764f9..1a2199616f 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -87,7 +87,7 @@ class ApiUserrights extends ApiBase { return array ( 'user' => array( ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => 1 + ApiBase::PARAM_REQUIRED => true ), 'add' => array( ApiBase::PARAM_TYPE => User::getAllGroups(), -- 2.20.1