Skip to content

Commit

Permalink
Revert lack of src tag on event image
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Sep 5, 2024
1 parent 08d2f44 commit c45a2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function getImageStreamHTML( $id, $src, $width, $height, $title='' ) {
if (canStreamIframe()) {
return '<iframe id="'.$id.'" src="'.$src.'" alt="'. validHtmlStr($title) .'" '.($width? ' width="'. validInt($width).'"' : '').($height?' height="'.validInt($height).'"' : '' ).'/>';
} else {
return '<img id="'.$id.'" data-src="'.$src.'" alt="'. validHtmlStr($title) .'" style="'.
return '<img id="'.$id.'" src="'.$src.'" alt="'. validHtmlStr($title) .'" style="'.
(($width and ($width !='auto')) ?'width:'.$width.';' : '').
(($height and ($height != 'auto'))?' height:'.$height.';':'').
'" />';
Expand Down

0 comments on commit c45a2af

Please sign in to comment.