Use spaces in Embed as Wikitext code

The method exists. I assume this was just a mistake.

Bug: 66250
Change-Id: I3a7d19cd1afd0404ce13f947052338d37983db61
This commit is contained in:
Thiemo Mättig 2014-08-13 15:54:37 +02:00
parent 9422bb5176
commit 2549d25e61

View file

@ -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 + ']]';
};
/**