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:
TheSandDoctor 2019-09-21 17:49:21 -07:00 committed by Krinkle
parent 0f4c126497
commit 4a933e034f

View file

@ -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 );