diff --git a/resources/mmv/mmv.EmbedFileFormatter.js b/resources/mmv/mmv.EmbedFileFormatter.js index 363e90127..4db4bcf96 100644 --- a/resources/mmv/mmv.EmbedFileFormatter.js +++ b/resources/mmv/mmv.EmbedFileFormatter.js @@ -61,7 +61,7 @@ widthSection = width ? '|' + width + 'px' : ''; captionSection = caption ? '|' + caption : ''; - return '[[File:' + title.getMain() + widthSection + '|thumb' + captionSection + ']]'; + return '[[File:' + title.getMainText() + widthSection + '|thumb' + captionSection + ']]'; }; /**