dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't cast SpecialPageFactory::$list to an object"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiImageRotate.php
diff --git
a/includes/api/ApiImageRotate.php
b/includes/api/ApiImageRotate.php
index
fa7524f
..
20396dd
100644
(file)
--- 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
),
ApiBase::PARAM_TYPE => array( '90', '180', '270' ),
ApiBase::PARAM_REQUIRED => true
),
- 'token' => array(
- ApiBase::PARAM_TYPE => 'string',
- ApiBase::PARAM_REQUIRED => true
- ),
'continue' => '',
);
if ( $flags ) {
'continue' => '',
);
if ( $flags ) {
@@
-202,7
+198,6
@@
class ApiImageRotate extends ApiBase {
return $pageSet->getFinalParamDescription() + array(
'rotation' => 'Degrees to rotate image clockwise',
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',
);
}
'continue' => 'When more results are available, use this to continue',
);
}
@@
-212,20
+207,7
@@
class ApiImageRotate extends ApiBase {
}
public function needsToken() {
}
public function needsToken() {
- return true;
- }
-
- public function getTokenSalt() {
- return '';
- }
-
- public function getPossibleErrors() {
- $pageSet = $this->getPageSet();
-
- return array_merge(
- parent::getPossibleErrors(),
- $pageSet->getFinalPossibleErrors()
- );
+ return 'csrf';
}
public function getExamples() {
}
public function getExamples() {