From b18d53d0353f792c8a8a8396c9880eaf074cd30b Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 14 Feb 2010 15:19:45 +0000 Subject: [PATCH] Followup to r62465, should be in an array --- includes/api/ApiQueryCategories.php | 2 +- includes/api/ApiQueryRecentChanges.php | 2 +- includes/api/ApiQueryUserContributions.php | 2 +- includes/api/ApiQueryWatchlist.php | 2 +- includes/api/ApiQueryWatchlistRaw.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index e7b55be8c8..09eb6bd628 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -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' ); diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index efdc78da38..e74e2f6929 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -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 diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 8ecbf6eaab..4a1aa8afa3 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -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'] ) ); diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 28b242a878..4f14f2ad98 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -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? diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 2a60116820..3f4072ac64 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -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' ) ); -- 2.20.1