Merge "Fix "Use of the "edit" token is deprecated. Use "csrf" instead.""

This commit is contained in:
jenkins-bot 2020-01-05 09:56:54 +00:00 committed by Gerrit Code Review
commit 0332e5649c

View file

@ -29,7 +29,7 @@ var setupEventHandlers = function () {
choice.find( 'input' ).prop( 'checked', 'checked' );
$( '#ajaxpoll-ajax-' + poll ).text( mw.message( 'ajaxpoll-submitting' ).text() ).css( 'display', 'inline-block' );
( new mw.Api() ).postWithToken( 'edit', {
( new mw.Api() ).postWithToken( 'csrf', {
action: 'pollsubmitvote',
format: 'json',
poll: poll,