X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiImageRotate.php;h=20396dd76171c88e3a02102a20c2d8358bfc6bec;hb=fdddf94570efc33fd06f16c72d41636a45cf203a;hp=26def4410ca896c288803960074fe59001e813be;hpb=b728d6920b05c8b667651f7e99d749496474f02b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index 26def4410c..20396dd761 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -184,10 +184,6 @@ class ApiImageRotate extends ApiBase { ApiBase::PARAM_TYPE => array( '90', '180', '270' ), ApiBase::PARAM_REQUIRED => true ), - 'token' => array( - ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_REQUIRED => true - ), 'continue' => '', ); if ( $flags ) { @@ -202,7 +198,6 @@ class ApiImageRotate extends ApiBase { return $pageSet->getFinalParamDescription() + array( 'rotation' => 'Degrees to rotate image clockwise', - 'token' => 'Edit token. You can get one of these through action=tokens', 'continue' => 'When more results are available, use this to continue', ); } @@ -212,11 +207,7 @@ class ApiImageRotate extends ApiBase { } public function needsToken() { - return true; - } - - public function getTokenSalt() { - return ''; + return 'csrf'; } public function getExamples() {