Merge "[FileRepo] Locking and transaction fixes."
[lhc/web/wiklou.git] / includes / api / ApiBlock.php
index 351ac6b..7d3a40b 100644 (file)
@@ -47,7 +47,7 @@ class ApiBlock extends ApiBase {
                $params = $this->extractRequestParams();
 
                if ( $params['gettoken'] ) {
-                       $res['blocktoken'] = $user->getEditToken( '', $this->getMain()->getRequest() );
+                       $res['blocktoken'] = $user->getEditToken();
                        $this->getResult()->addValue( null, $this->getModuleName(), $res );
                        return;
                }