Index: trunk/extensions/LiquidThreads/api/ApiThreadAction.php |
— | — | @@ -46,7 +46,6 @@ |
47 | 47 | |
48 | 48 | public function getPossibleErrors() { |
49 | 49 | return array( |
50 | | - array( 'sessionfailure' ), |
51 | 50 | array( 'missingparam', 'action' ), |
52 | 51 | array( 'missingparam', 'talkpage' ), |
53 | 52 | array( 'missingparam', 'subject' ), |
— | — | @@ -76,6 +75,10 @@ |
77 | 76 | return array( |
78 | 77 | ); |
79 | 78 | } |
| 79 | + |
| 80 | + public function getTokenSalt() { |
| 81 | + return null; |
| 82 | + } |
80 | 83 | |
81 | 84 | public function getAllowedParams() { |
82 | 85 | return array( |
— | — | @@ -98,7 +101,9 @@ |
99 | 102 | ); |
100 | 103 | } |
101 | 104 | |
102 | | - public function mustBePosted() { return true; } |
| 105 | + public function mustBePosted() { |
| 106 | + return true; |
| 107 | + } |
103 | 108 | |
104 | 109 | public function isWriteMode() { |
105 | 110 | return true; |
— | — | @@ -107,13 +112,6 @@ |
108 | 113 | public function execute() { |
109 | 114 | $params = $this->extractRequestParams(); |
110 | 115 | |
111 | | - global $wgUser; |
112 | | - |
113 | | - if ( empty( $params['token'] ) || |
114 | | - !$wgUser->matchEditToken( $params['token'] ) ) { |
115 | | - $this->dieUsageMsg( array( 'sessionfailure' ) ); |
116 | | - } |
117 | | - |
118 | 116 | if ( empty( $params['threadaction'] ) ) { |
119 | 117 | $this->dieUsageMsg( array( 'missingparam', 'action' ) ); |
120 | 118 | } |