mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
VisualEditor: Replace deprecated editToken with csrfToken
The editToken key of mw.users.tokens is deprecated since MediaWiki 1.27. Bug: T233528 Change-Id: I7297e6abb159e9bb758859454b1097292e607117
This commit is contained in:
parent
7f7cf6ce79
commit
70e3e7cc8b
|
@ -20,7 +20,7 @@ ve.init.mw.Target = function VeInitMwTarget( config ) {
|
|||
|
||||
this.active = false;
|
||||
this.pageName = mw.config.get( 'wgRelevantPageName' );
|
||||
this.editToken = mw.user.tokens.get( 'editToken' );
|
||||
this.editToken = mw.user.tokens.get( 'csrfToken' );
|
||||
this.recovered = false;
|
||||
this.fromEditedState = false;
|
||||
this.originalHtml = null;
|
||||
|
|
Loading…
Reference in a new issue