r62462 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62461‎ | r62462 | r62463 >
Date:14:40, 14 February 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup to r62425

Switch call to dieUsage to dieUsageMsg for sessionfailure

Update getPossibleErrors to match
Modified paths:
  • /trunk/extensions/LiquidThreads/api/ApiThreadAction.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php
@@ -46,7 +46,7 @@
4747
4848 public function getPossibleErrors() {
4949 return array(
50 - array( 'code' => 'sessionfailure', 'info' => '' ),
 50+ array( 'sessionfailure' ),
5151 array( 'code' => 'action', 'info' => 'missing-param' ),
5252 array( 'code' => 'too-many-threads', 'info' => 'You may only split one thread at a time' ),
5353 array( 'code' => 'no-specified-threads', 'info' => 'You must specify a thread to split' ),
@@ -112,8 +112,7 @@
113113
114114 if ( empty( $params['token'] ) ||
115115 !$wgUser->matchEditToken( $params['token'] ) ) {
116 - $this->dieUsage( 'sessionfailure' );
117 - return;
 116+ $this->dieUsageMsg( array( 'sessionfailure' ) )
118117 }
119118
120119 if ( empty( $params['threadaction'] ) ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62425getPossibleErrors for ApiThreadActionreedy13:50, 13 February 2010

Status & tagging log