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
mw.Api: Replace deprecated token names by 'csrf'
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki
/
api
/
options.js
diff --git
a/resources/src/mediawiki/api/options.js
b/resources/src/mediawiki/api/options.js
index
bd6fa06
..
0af2a75
100644
(file)
--- a/
resources/src/mediawiki/api/options.js
+++ b/
resources/src/mediawiki/api/options.js
@@
-54,7
+54,7
@@
}
} else {
if ( value !== null ) {
}
} else {
if ( value !== null ) {
- deferreds.push( this.postWithToken( '
options
', {
+ deferreds.push( this.postWithToken( '
csrf
', {
formatversion: 2,
action: 'options',
optionname: name,
formatversion: 2,
action: 'options',
optionname: name,
@@
-62,7
+62,7
@@
} ) );
} else {
// Omitting value resets the option
} ) );
} else {
// Omitting value resets the option
- deferreds.push( this.postWithToken( '
options
', {
+ deferreds.push( this.postWithToken( '
csrf
', {
formatversion: 2,
action: 'options',
optionname: name
formatversion: 2,
action: 'options',
optionname: name
@@
-72,7
+72,7
@@
}
if ( grouped.length ) {
}
if ( grouped.length ) {
- deferreds.push( this.postWithToken( '
options
', {
+ deferreds.push( this.postWithToken( '
csrf
', {
formatversion: 2,
action: 'options',
change: grouped
formatversion: 2,
action: 'options',
change: grouped