Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | public function getPossibleErrors() { |
49 | 49 | return array( |
50 | | - array( 'code' => 'sessionfailure', 'info' => '' ), |
| 50 | + array( 'sessionfailure' ), |
51 | 51 | array( 'code' => 'action', 'info' => 'missing-param' ), |
52 | 52 | array( 'code' => 'too-many-threads', 'info' => 'You may only split one thread at a time' ), |
53 | 53 | array( 'code' => 'no-specified-threads', 'info' => 'You must specify a thread to split' ), |
— | — | @@ -112,8 +112,7 @@ |
113 | 113 | |
114 | 114 | if ( empty( $params['token'] ) || |
115 | 115 | !$wgUser->matchEditToken( $params['token'] ) ) { |
116 | | - $this->dieUsage( 'sessionfailure' ); |
117 | | - return; |
| 116 | + $this->dieUsageMsg( array( 'sessionfailure' ) ) |
118 | 117 | } |
119 | 118 | |
120 | 119 | if ( empty( $params['threadaction'] ) ) { |