Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -197,8 +197,7 @@ |
198 | 198 | /* Set up internal members based upon params. */ |
199 | 199 | $this->initProperties( $prop ); |
200 | 200 | |
201 | | - if ( $this->fld_patrolled && !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol() ) |
202 | | - { |
| 201 | + if ( $this->fld_patrolled && !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol() ) { |
203 | 202 | $this->dieUsage( 'You need the patrol right to request the patrolled flag', 'permissiondenied' ); |
204 | 203 | } |
205 | 204 | |
— | — | @@ -219,8 +218,7 @@ |
220 | 219 | $this->addFieldsIf( 'rc_log_type', $this->fld_loginfo ); |
221 | 220 | $this->addFieldsIf( 'rc_log_action', $this->fld_loginfo ); |
222 | 221 | $this->addFieldsIf( 'rc_params', $this->fld_loginfo ); |
223 | | - if ( $this->fld_redirect || isset( $show['redirect'] ) || isset( $show['!redirect'] ) ) |
224 | | - { |
| 222 | + if ( $this->fld_redirect || isset( $show['redirect'] ) || isset( $show['!redirect'] ) ) { |
225 | 223 | $this->addTables( 'page' ); |
226 | 224 | $this->addJoinConds( array( 'page' => array( 'LEFT JOIN', array( 'rc_namespace=page_namespace', 'rc_title=page_title' ) ) ) ); |
227 | 225 | $this->addFields( 'page_is_redirect' ); |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -186,8 +186,7 @@ |
187 | 187 | if ( !is_null( $show ) ) { |
188 | 188 | $show = array_flip( $show ); |
189 | 189 | if ( ( isset( $show['minor'] ) && isset( $show['!minor'] ) ) |
190 | | - || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) ) |
191 | | - { |
| 190 | + || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) ) { |
192 | 191 | $this->dieUsageMsg( array( 'show' ) ); |
193 | 192 | } |
194 | 193 | |
— | — | @@ -211,8 +210,7 @@ |
212 | 211 | ) ); |
213 | 212 | |
214 | 213 | if ( isset( $show['patrolled'] ) || isset( $show['!patrolled'] ) || |
215 | | - $this->fld_patrolled ) |
216 | | - { |
| 214 | + $this->fld_patrolled ) { |
217 | 215 | if ( !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol() ) { |
218 | 216 | $this->dieUsage( 'You need the patrol right to request the patrolled flag', 'permissiondenied' ); |
219 | 217 | } |