http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70462

Revision: 70462
Author:   soxred93
Date:     2010-08-04 14:29:39 +0000 (Wed, 04 Aug 2010)

Log Message:
-----------
Followup to r70460 and r70461: Use true instead of 1

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiBlock.php
    trunk/phase3/includes/api/ApiEditPage.php
    trunk/phase3/includes/api/ApiEmailUser.php
    trunk/phase3/includes/api/ApiMove.php
    trunk/phase3/includes/api/ApiPatrol.php
    trunk/phase3/includes/api/ApiProtect.php
    trunk/phase3/includes/api/ApiPurge.php
    trunk/phase3/includes/api/ApiQueryBacklinks.php
    trunk/phase3/includes/api/ApiRollback.php
    trunk/phase3/includes/api/ApiUndelete.php
    trunk/phase3/includes/api/ApiUpload.php
    trunk/phase3/includes/api/ApiUserrights.php

Modified: trunk/phase3/includes/api/ApiBlock.php
===================================================================
--- trunk/phase3/includes/api/ApiBlock.php      2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiBlock.php      2010-08-04 14:29:39 UTC (rev 
70462)
@@ -134,7 +134,7 @@
                return array(
                        'user' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'token' => null,
                        'gettoken' => false,

Modified: trunk/phase3/includes/api/ApiEditPage.php
===================================================================
--- trunk/phase3/includes/api/ApiEditPage.php   2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiEditPage.php   2010-08-04 14:29:39 UTC (rev 
70462)
@@ -386,7 +386,7 @@
                return array(
                        'title' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'section' => null,
                        'text' => null,

Modified: trunk/phase3/includes/api/ApiEmailUser.php
===================================================================
--- trunk/phase3/includes/api/ApiEmailUser.php  2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiEmailUser.php  2010-08-04 14:29:39 UTC (rev 
70462)
@@ -85,12 +85,12 @@
                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,

Modified: trunk/phase3/includes/api/ApiMove.php
===================================================================
--- trunk/phase3/includes/api/ApiMove.php       2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiMove.php       2010-08-04 14:29:39 UTC (rev 
70462)
@@ -171,7 +171,7 @@
                        ),
                        'to' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'token' => null,
                        'reason' => null,

Modified: trunk/phase3/includes/api/ApiPatrol.php
===================================================================
--- trunk/phase3/includes/api/ApiPatrol.php     2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiPatrol.php     2010-08-04 14:29:39 UTC (rev 
70462)
@@ -67,7 +67,7 @@
                        'token' => null,
                        'rcid' => array(
                                ApiBase::PARAM_TYPE => 'integer',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                );
        }

Modified: trunk/phase3/includes/api/ApiProtect.php
===================================================================
--- trunk/phase3/includes/api/ApiProtect.php    2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiProtect.php    2010-08-04 14:29:39 UTC (rev 
70462)
@@ -145,12 +145,12 @@
                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,

Modified: trunk/phase3/includes/api/ApiPurge.php
===================================================================
--- trunk/phase3/includes/api/ApiPurge.php      2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiPurge.php      2010-08-04 14:29:39 UTC (rev 
70462)
@@ -84,7 +84,7 @@
                return array(
                        'titles' => array(
                                ApiBase::PARAM_ISMULTI => true,
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        )
                );
        }

Modified: trunk/phase3/includes/api/ApiQueryBacklinks.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryBacklinks.php     2010-08-04 14:15:33 UTC 
(rev 70461)
+++ trunk/phase3/includes/api/ApiQueryBacklinks.php     2010-08-04 14:29:39 UTC 
(rev 70462)
@@ -404,7 +404,7 @@
                $retval = array(
                        'title' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'continue' => null,
                        'namespace' => array(

Modified: trunk/phase3/includes/api/ApiRollback.php
===================================================================
--- trunk/phase3/includes/api/ApiRollback.php   2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiRollback.php   2010-08-04 14:29:39 UTC (rev 
70462)
@@ -79,11 +79,11 @@
                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,

Modified: trunk/phase3/includes/api/ApiUndelete.php
===================================================================
--- trunk/phase3/includes/api/ApiUndelete.php   2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiUndelete.php   2010-08-04 14:29:39 UTC (rev 
70462)
@@ -100,7 +100,7 @@
                return array(
                        'title' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'token' => null,
                        'reason' => '',

Modified: trunk/phase3/includes/api/ApiUpload.php
===================================================================
--- trunk/phase3/includes/api/ApiUpload.php     2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiUpload.php     2010-08-04 14:29:39 UTC (rev 
70462)
@@ -316,7 +316,7 @@
                $params = array(
                        'filename' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'comment' => array(
                                ApiBase::PARAM_DFLT => ''

Modified: trunk/phase3/includes/api/ApiUserrights.php
===================================================================
--- trunk/phase3/includes/api/ApiUserrights.php 2010-08-04 14:15:33 UTC (rev 
70461)
+++ trunk/phase3/includes/api/ApiUserrights.php 2010-08-04 14:29:39 UTC (rev 
70462)
@@ -87,7 +87,7 @@
                return array (
                        'user' => array(
                                ApiBase::PARAM_TYPE => 'string',
-                               ApiBase::PARAM_REQUIRED => 1
+                               ApiBase::PARAM_REQUIRED => true
                        ),
                        'add' => array(
                                ApiBase::PARAM_TYPE => User::getAllGroups(),



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to