http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70231
Revision: 70231
Author: reedy
Date: 2010-07-31 19:53:43 +0000 (Sat, 31 Jul 2010)
Log Message:
-----------
Move a few braces noticed while doing CR
Modified Paths:
--------------
trunk/phase3/includes/api/ApiQueryRecentChanges.php
trunk/phase3/includes/api/ApiQueryUserContributions.php
Modified: trunk/phase3/includes/api/ApiQueryRecentChanges.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryRecentChanges.php 2010-07-31 19:28:18 UTC
(rev 70230)
+++ trunk/phase3/includes/api/ApiQueryRecentChanges.php 2010-07-31 19:53:43 UTC
(rev 70231)
@@ -197,8 +197,7 @@
/* Set up internal members based upon params. */
$this->initProperties( $prop );
- if ( $this->fld_patrolled && !$wgUser->useRCPatrol() &&
!$wgUser->useNPPatrol() )
- {
+ if ( $this->fld_patrolled && !$wgUser->useRCPatrol() &&
!$wgUser->useNPPatrol() ) {
$this->dieUsage( 'You need the patrol right to
request the patrolled flag', 'permissiondenied' );
}
@@ -219,8 +218,7 @@
$this->addFieldsIf( 'rc_log_type', $this->fld_loginfo );
$this->addFieldsIf( 'rc_log_action', $this->fld_loginfo
);
$this->addFieldsIf( 'rc_params', $this->fld_loginfo );
- if ( $this->fld_redirect || isset( $show['redirect'] )
|| isset( $show['!redirect'] ) )
- {
+ if ( $this->fld_redirect || isset( $show['redirect'] )
|| isset( $show['!redirect'] ) ) {
$this->addTables( 'page' );
$this->addJoinConds( array( 'page' => array(
'LEFT JOIN', array( 'rc_namespace=page_namespace', 'rc_title=page_title' ) ) )
);
$this->addFields( 'page_is_redirect' );
Modified: trunk/phase3/includes/api/ApiQueryUserContributions.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryUserContributions.php 2010-07-31
19:28:18 UTC (rev 70230)
+++ trunk/phase3/includes/api/ApiQueryUserContributions.php 2010-07-31
19:53:43 UTC (rev 70231)
@@ -186,8 +186,7 @@
if ( !is_null( $show ) ) {
$show = array_flip( $show );
if ( ( isset( $show['minor'] ) && isset(
$show['!minor'] ) )
- || ( isset( $show['patrolled'] ) &&
isset( $show['!patrolled'] ) ) )
- {
+ || ( isset( $show['patrolled'] ) &&
isset( $show['!patrolled'] ) ) ) {
$this->dieUsageMsg( array( 'show' ) );
}
@@ -211,8 +210,7 @@
) );
if ( isset( $show['patrolled'] ) || isset( $show['!patrolled']
) ||
- $this->fld_patrolled )
- {
+ $this->fld_patrolled ) {
if ( !$wgUser->useRCPatrol() && !$wgUser->useNPPatrol()
) {
$this->dieUsage( 'You need the patrol right to
request the patrolled flag', 'permissiondenied' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs