From: Cash Costello Date: Sat, 17 Dec 2011 13:30:44 +0000 (-0500) Subject: Refs #3971 inserting medium size thumbnails rather than small X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c97e17eba9a5bd2272c27b15c18580c964a57f9d;p=lorea%2Felgg.git Refs #3971 inserting medium size thumbnails rather than small --- diff --git a/mod/embed/views/default/js/embed/embed.php b/mod/embed/views/default/js/embed/embed.php index 8a8f0290c..54b9c391d 100644 --- a/mod/embed/views/default/js/embed/embed.php +++ b/mod/embed/views/default/js/embed/embed.php @@ -35,7 +35,12 @@ elgg.embed.insert = function(event) { // generalize this based on a css class attached to what should be inserted var content = ' ' + $(this).find(".embed-insert").parent().html() + ' '; - + + // this is a temporary work-around for #3971 + if (content.indexOf('thumbnail.php') != -1) { + content = content.replace('size=small', 'size=medium'); + } + textArea.val(textArea.val() + content); textArea.focus();