Completed
Pull Request — development (#3620)
by Emanuele
07:37 queued 07:37
created
sources/ElkArte/AttachmentsDisplay.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,9 +185,11 @@
 block discarded – undo
185 185
 					if (empty($attachment['id_thumb'])
186 186
 						|| $attachment['thumb_width'] > $modSettings['attachmentThumbWidth']
187 187
 						|| $attachment['thumb_height'] > $modSettings['attachmentThumbHeight'])
188
-						//|| ($attachment['thumb_width'] < $modSettings['attachmentThumbWidth'] && $attachment['thumb_height'] < $modSettings['attachmentThumbHeight']))
188
+					{
189
+											//|| ($attachment['thumb_width'] < $modSettings['attachmentThumbWidth'] && $attachment['thumb_height'] < $modSettings['attachmentThumbHeight']))
189 190
 					{
190 191
 						$filename = getAttachmentFilename($attachment['filename'], $attachment['id_attach'], $attachment['id_folder'], false, $attachment['file_hash']);
192
+					}
191 193
 						$attachment = array_merge($attachment, updateAttachmentThumbnail($filename, $attachment['id_attach'], $id_msg, $attachment['id_thumb'], $attachment['filename']));
192 194
 					}
193 195
 
Please login to merge, or discard this patch.