Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -12,9 +12,6 @@ |
13 | 13 | return; |
14 | 14 | } |
15 | 15 | |
16 | | - if ( empty( $params['threadaction'] ) ) { |
17 | | - $this->dieUsageMsg( array( 'missingparam', 'action' ) ); |
18 | | - } |
19 | 16 | |
20 | 17 | $allowedAllActions = array( 'markread' ); |
21 | 18 | $action = $params['threadaction']; |
— | — | @@ -843,12 +840,13 @@ |
844 | 841 | 'type' => 'Specifies the type of reaction to add', |
845 | 842 | 'value' => 'Specifies the value associated with the reaction to add', |
846 | 843 | 'method' => 'For getting inline edit forms, the method to get a form for', |
| 844 | + 'operand' => '', |
| 845 | + 'gettoken' => 'Gets a thread token', |
847 | 846 | ); |
848 | 847 | } |
849 | 848 | |
850 | 849 | public function getPossibleErrors() { |
851 | 850 | return array_merge( parent::getPossibleErrors(), array( |
852 | | - array( 'missingparam', 'action' ), |
853 | 851 | array( 'missingparam', 'talkpage' ), |
854 | 852 | array( 'missingparam', 'subject' ), |
855 | 853 | array( 'code' => 'too-many-threads', 'info' => 'You may only split one thread at a time' ), |
— | — | @@ -894,6 +892,7 @@ |
895 | 893 | 'talkpage' => null, |
896 | 894 | 'threadaction' => array( |
897 | 895 | ApiBase::PARAM_TYPE => array_keys( $this->getActions() ), |
| 896 | + ApiBase::PARAM_REQUIRED => true, |
898 | 897 | ), |
899 | 898 | 'token' => null, |
900 | 899 | 'subject' => null, |