Followup to r62465, should be in an array
authorSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 15:19:45 +0000 (15:19 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 14 Feb 2010 15:19:45 +0000 (15:19 +0000)
includes/api/ApiQueryCategories.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryWatchlist.php
includes/api/ApiQueryWatchlistRaw.php

index e7b55be..09eb6bd 100644 (file)
@@ -93,7 +93,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
                }
 
                if ( isset( $show['hidden'] ) && isset( $show['!hidden'] ) )
-                       $this->dieUsageMsg( 'show' );
+                       $this->dieUsageMsg( array( 'show' ) );
                if ( isset( $show['hidden'] ) || isset( $show['!hidden'] ) || isset( $prop['hidden'] ) )
                {
                        $this->addOption( 'STRAIGHT_JOIN' );
index efdc78d..e74e2f6 100644 (file)
@@ -132,7 +132,7 @@ class ApiQueryRecentChanges extends ApiQueryBase {
                                        || ( isset ( $show['redirect'] ) && isset ( $show['!redirect'] ) )
                                        || ( isset ( $show['patrolled'] ) && isset ( $show['!patrolled'] ) ) ) {
 
-                               $this->dieUsageMsg( 'show' );
+                               $this->dieUsageMsg( array( 'show' ) );
                        }
                        
                        // Check permissions
index 8ecbf6e..4a1aa8a 100644 (file)
@@ -185,7 +185,7 @@ class ApiQueryContributions extends ApiQueryBase {
                        $show = array_flip( $show );
                        if ( ( isset( $show['minor'] ) && isset( $show['!minor'] ) )
                                        || ( isset( $show['patrolled'] ) && isset( $show['!patrolled'] ) ) )
-                               $this->dieUsageMsg( 'show' );
+                               $this->dieUsageMsg( array( 'show' ) );
 
                        $this->addWhereIf( 'rev_minor_edit = 0', isset( $show['!minor'] ) );
                        $this->addWhereIf( 'rev_minor_edit != 0', isset( $show['minor'] ) );
index 28b242a..4f14f2a 100644 (file)
@@ -151,7 +151,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                                        || ( isset ( $show['anon'] ) && isset ( $show['!anon'] ) )
                                        || ( isset ( $show['patrolled'] ) && isset ( $show['!patrolled'] ) ) ) {
 
-                               $this->dieUsageMsg( 'show' );
+                               $this->dieUsageMsg( array( 'show' ) );
                        }
                        
                        // Check permissions.  FIXME: should this check $user instead of $wgUser?
index 2a60116..3f4072a 100644 (file)
@@ -59,7 +59,7 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase {
                $prop = array_flip( (array)$params['prop'] );
                $show = array_flip( (array)$params['show'] );
                if ( isset( $show['changed'] ) && isset( $show['!changed'] ) )
-                       $this->dieUsageMsg( 'show' );
+                       $this->dieUsageMsg( array( 'show' ) );
 
                $this->addTables( 'watchlist' );
                $this->addFields( array( 'wl_namespace', 'wl_title' ) );