mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
ext.abuseFilter.tools.js: Replace deprecated editToken with csrfToken
The editToken key of mw.users.tokens is deprecated since MediaWiki 1.27. This commit resolves it for AbuseFilter. Bug: T233442 Change-Id: I445313088cef40caf0d0695a64515cd16e83504d
This commit is contained in:
parent
0f4c126497
commit
4a933e034f
|
@ -101,7 +101,7 @@
|
|||
api.post( {
|
||||
action: 'abusefilterunblockautopromote',
|
||||
user: name,
|
||||
token: mw.user.tokens.get( 'editToken' )
|
||||
token: mw.user.tokens.get( 'csrfToken' )
|
||||
} )
|
||||
.done( processReautoconfirm )
|
||||
.fail( processReautoconfirmFailure );
|
||||
|
|
Loading…
Reference in a new issue