From 2549d25e61ee692b04d02ab39fed55e0b0df49e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiemo=20M=C3=A4ttig?= Date: Wed, 13 Aug 2014 15:54:37 +0200 Subject: [PATCH] Use spaces in Embed as Wikitext code The method exists. I assume this was just a mistake. Bug: 66250 Change-Id: I3a7d19cd1afd0404ce13f947052338d37983db61 --- resources/mmv/mmv.EmbedFileFormatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + ']]'; }; /**