Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -141,19 +141,15 @@ |
142 | 142 | if ( isset( $p[ApiBase::PARAM_DFLT] ) ) { |
143 | 143 | $a['default'] = $p[ApiBase::PARAM_DFLT]; |
144 | 144 | } |
145 | | - if ( isset( $p[ApiBase::PARAM_ISMULTI] ) ) { |
146 | | - if ( $p[ApiBase::PARAM_ISMULTI] ) { |
147 | | - $a['multi'] = ''; |
148 | | - $a['limit'] = $this->getMain()->canApiHighLimits() ? |
149 | | - ApiBase::LIMIT_SML2 : |
150 | | - ApiBase::LIMIT_SML1; |
151 | | - } |
| 145 | + if ( isset( $p[ApiBase::PARAM_ISMULTI] ) && $p[ApiBase::PARAM_ISMULTI] ) { |
| 146 | + $a['multi'] = ''; |
| 147 | + $a['limit'] = $this->getMain()->canApiHighLimits() ? |
| 148 | + ApiBase::LIMIT_SML2 : |
| 149 | + ApiBase::LIMIT_SML1; |
152 | 150 | } |
153 | 151 | |
154 | | - if ( isset( $p[ApiBase::PARAM_ALLOW_DUPLICATES] ) ) { |
155 | | - if ( $p[ApiBase::PARAM_ALLOW_DUPLICATES] ) { |
156 | | - $a['allowsduplicates'] = ''; |
157 | | - } |
| 152 | + if ( isset( $p[ApiBase::PARAM_ALLOW_DUPLICATES] ) && $p[ApiBase::PARAM_ALLOW_DUPLICATES] ) { |
| 153 | + $a['allowsduplicates'] = ''; |
158 | 154 | } |
159 | 155 | |
160 | 156 | if ( isset( $p[ApiBase::PARAM_TYPE] ) ) { |