Follow-up Ia75d685c: Fix the insert file dialog

This appears to have been an oversight in the above change. Since the magic
words variable was no longer set, magicWordsI18N became null which broke
things, and caused whitespace info to not get recorded, which broke the
ability to handle the dialog being submitted too.

Bug: T230078
Change-Id: I5c44ed348de6ac2363d3d789b38053caa3935f62
This commit is contained in:
Alex Monk 2019-08-07 23:51:47 +01:00
parent 811a21d1ff
commit 20d3c66c2c

View file

@ -643,7 +643,7 @@
},
open: function () {
var context, selection, parseFileSyntax,
magicWordsI18N = mw.config.get( 'wgWikiEditorMagicWords' ),
magicWordsI18N = configData.magicWords,
fileData = {
pre: '',
post: '',