Followup to r70460 and r70461: Use true instead of 1
authorX! <soxred93@users.mediawiki.org>
Wed, 4 Aug 2010 14:29:39 +0000 (14:29 +0000)
committerX! <soxred93@users.mediawiki.org>
Wed, 4 Aug 2010 14:29:39 +0000 (14:29 +0000)
12 files changed:
includes/api/ApiBlock.php
includes/api/ApiEditPage.php
includes/api/ApiEmailUser.php
includes/api/ApiMove.php
includes/api/ApiPatrol.php
includes/api/ApiProtect.php
includes/api/ApiPurge.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiRollback.php
includes/api/ApiUndelete.php
includes/api/ApiUpload.php
includes/api/ApiUserrights.php

index f597204..ac2daa4 100644 (file)
@@ -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,
index 90f11f7..5b3afbe 100644 (file)
@@ -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,
index ad35c99..088f696 100644 (file)
@@ -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,
index 4c52d3d..e3e7ab7 100644 (file)
@@ -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,
index 33fbe63..461c2cd 100644 (file)
@@ -67,7 +67,7 @@ class ApiPatrol extends ApiBase {
                        'token' => null,
                        'rcid' => array(
                                ApiBase::PARAM_TYPE => 'integer',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                );
        }
index 77c9f6d..0b7e307 100644 (file)
@@ -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,
index 7d3b8a7..dc2bac0 100644 (file)
@@ -84,7 +84,7 @@ class ApiPurge extends ApiBase {
                return array(
                        'titles' => array(
                                ApiBase::PARAM_ISMULTI => true,
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        )
                );
        }
index 6d22160..04fe405 100644 (file)
@@ -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(
index 40a88dc..71e62ee 100644 (file)
@@ -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,
index 6082ef0..2551d05 100644 (file)
@@ -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' => '',
index 8636fea..a6ba695 100644 (file)
@@ -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 => ''
index 2869976..1a21996 100644 (file)
@@ -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(),