Index: trunk/phase3/includes/api/ApiMove.php |
— | — | @@ -171,7 +171,7 @@ |
172 | 172 | ), |
173 | 173 | 'to' => array( |
174 | 174 | ApiBase::PARAM_TYPE => 'string', |
175 | | - ApiBase::PARAM_REQUIRED => 1 |
| 175 | + ApiBase::PARAM_REQUIRED => true |
176 | 176 | ), |
177 | 177 | 'token' => null, |
178 | 178 | 'reason' => null, |
Index: trunk/phase3/includes/api/ApiProtect.php |
— | — | @@ -145,12 +145,12 @@ |
146 | 146 | return array( |
147 | 147 | 'title' => array( |
148 | 148 | ApiBase::PARAM_TYPE => 'string', |
149 | | - ApiBase::PARAM_REQUIRED => 1 |
| 149 | + ApiBase::PARAM_REQUIRED => true |
150 | 150 | ), |
151 | 151 | 'token' => null, |
152 | 152 | 'protections' => array( |
153 | 153 | ApiBase::PARAM_ISMULTI => true, |
154 | | - ApiBase::PARAM_REQUIRED => 1, |
| 154 | + ApiBase::PARAM_REQUIRED => true, |
155 | 155 | ), |
156 | 156 | 'expiry' => array( |
157 | 157 | ApiBase::PARAM_ISMULTI => true, |
Index: trunk/phase3/includes/api/ApiPurge.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | return array( |
86 | 86 | 'titles' => array( |
87 | 87 | ApiBase::PARAM_ISMULTI => true, |
88 | | - ApiBase::PARAM_REQUIRED => 1 |
| 88 | + ApiBase::PARAM_REQUIRED => true |
89 | 89 | ) |
90 | 90 | ); |
91 | 91 | } |
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -404,7 +404,7 @@ |
405 | 405 | $retval = array( |
406 | 406 | 'title' => array( |
407 | 407 | ApiBase::PARAM_TYPE => 'string', |
408 | | - ApiBase::PARAM_REQUIRED => 1 |
| 408 | + ApiBase::PARAM_REQUIRED => true |
409 | 409 | ), |
410 | 410 | 'continue' => null, |
411 | 411 | 'namespace' => array( |
Index: trunk/phase3/includes/api/ApiRollback.php |
— | — | @@ -79,11 +79,11 @@ |
80 | 80 | return array( |
81 | 81 | 'title' => array( |
82 | 82 | ApiBase::PARAM_TYPE => 'string', |
83 | | - ApiBase::PARAM_REQUIRED => 1 |
| 83 | + ApiBase::PARAM_REQUIRED => true |
84 | 84 | ), |
85 | 85 | 'user' => array( |
86 | 86 | ApiBase::PARAM_TYPE => 'string', |
87 | | - ApiBase::PARAM_REQUIRED => 1 |
| 87 | + ApiBase::PARAM_REQUIRED => true |
88 | 88 | ), |
89 | 89 | 'token' => null, |
90 | 90 | 'summary' => null, |
Index: trunk/phase3/includes/api/ApiUserrights.php |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | return array ( |
89 | 89 | 'user' => array( |
90 | 90 | ApiBase::PARAM_TYPE => 'string', |
91 | | - ApiBase::PARAM_REQUIRED => 1 |
| 91 | + ApiBase::PARAM_REQUIRED => true |
92 | 92 | ), |
93 | 93 | 'add' => array( |
94 | 94 | ApiBase::PARAM_TYPE => User::getAllGroups(), |
Index: trunk/phase3/includes/api/ApiEditPage.php |
— | — | @@ -386,7 +386,7 @@ |
387 | 387 | return array( |
388 | 388 | 'title' => array( |
389 | 389 | ApiBase::PARAM_TYPE => 'string', |
390 | | - ApiBase::PARAM_REQUIRED => 1 |
| 390 | + ApiBase::PARAM_REQUIRED => true |
391 | 391 | ), |
392 | 392 | 'section' => null, |
393 | 393 | 'text' => null, |
Index: trunk/phase3/includes/api/ApiEmailUser.php |
— | — | @@ -85,12 +85,12 @@ |
86 | 86 | return array( |
87 | 87 | 'target' => array( |
88 | 88 | ApiBase::PARAM_TYPE => 'string', |
89 | | - ApiBase::PARAM_REQUIRED => 1 |
| 89 | + ApiBase::PARAM_REQUIRED => true |
90 | 90 | ), |
91 | 91 | 'subject' => null, |
92 | 92 | 'text' => array( |
93 | 93 | ApiBase::PARAM_TYPE => 'string', |
94 | | - ApiBase::PARAM_REQUIRED => 1 |
| 94 | + ApiBase::PARAM_REQUIRED => true |
95 | 95 | ), |
96 | 96 | 'token' => null, |
97 | 97 | 'ccme' => false, |
Index: trunk/phase3/includes/api/ApiBlock.php |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | return array( |
136 | 136 | 'user' => array( |
137 | 137 | ApiBase::PARAM_TYPE => 'string', |
138 | | - ApiBase::PARAM_REQUIRED => 1 |
| 138 | + ApiBase::PARAM_REQUIRED => true |
139 | 139 | ), |
140 | 140 | 'token' => null, |
141 | 141 | 'gettoken' => false, |
Index: trunk/phase3/includes/api/ApiPatrol.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | 'token' => null, |
69 | 69 | 'rcid' => array( |
70 | 70 | ApiBase::PARAM_TYPE => 'integer', |
71 | | - ApiBase::PARAM_REQUIRED => 1 |
| 71 | + ApiBase::PARAM_REQUIRED => true |
72 | 72 | ), |
73 | 73 | ); |
74 | 74 | } |
Index: trunk/phase3/includes/api/ApiUndelete.php |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | return array( |
102 | 102 | 'title' => array( |
103 | 103 | ApiBase::PARAM_TYPE => 'string', |
104 | | - ApiBase::PARAM_REQUIRED => 1 |
| 104 | + ApiBase::PARAM_REQUIRED => true |
105 | 105 | ), |
106 | 106 | 'token' => null, |
107 | 107 | 'reason' => '', |
Index: trunk/phase3/includes/api/ApiUpload.php |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | $params = array( |
318 | 318 | 'filename' => array( |
319 | 319 | ApiBase::PARAM_TYPE => 'string', |
320 | | - ApiBase::PARAM_REQUIRED => 1 |
| 320 | + ApiBase::PARAM_REQUIRED => true |
321 | 321 | ), |
322 | 322 | 'comment' => array( |
323 | 323 | ApiBase::PARAM_DFLT => '' |