Skip to content

Commit f999409

Browse files
authored
Update functions.image.php
One more change so the image when viewed without a thumbnail has the correct width and height set for the browser.
1 parent 5c95431 commit f999409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/functions.image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function newbbAttachmentImage($source)
9292
$attachmentImage .= '<img src="' . $image_url . '" ' . $pseudo_size . ' alt="' . $source . ' ' . $img_info . '" style="max-width: 100%; height: auto;">';
9393
$attachmentImage .= '</a>';
9494
} elseif (file_exists($image)) {
95-
$attachmentImage = '<img src="' . $image_url . '" alt="' . $source . ' ' . $img_info . '" style="max-width: 100%; height: auto;">';
95+
$attachmentImage = '<img src="' . $image_url . '" alt="' . $source . ' ' . $img_info . '" width="' . $imginfo[0] . 'px" height="' . $imginfo[1] . 'px" style="max-width: 100%; height: auto;">';
9696
} else {
9797
$attachmentImage = '';
9898
}

0 commit comments

Comments
 (0)