Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | public function getPossibleErrors() { |
49 | 49 | return array( |
50 | 50 | array( 'sessionfailure' ), |
51 | | - array( 'code' => 'action', 'info' => 'missing-param' ), |
| 51 | + array( 'missingparam', 'action' ), |
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' ), |
54 | 54 | array( 'code' => 'already-top-level', 'info' => 'This thread is already a top-level thread.' ), |
— | — | @@ -116,8 +116,7 @@ |
117 | 117 | } |
118 | 118 | |
119 | 119 | if ( empty( $params['threadaction'] ) ) { |
120 | | - $this->dieUsage( 'missing-param', 'action' ); |
121 | | - return; |
| 120 | + $this->dieUsageMsg( array( 'missingparam', 'action' ) ) |
122 | 121 | } |
123 | 122 | |
124 | 123 | $allowedAllActions = array( 'markread' ); |