Skip to content

Commit

Permalink
Fix for image display - see Bug 695 Thanks, Gustav
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Dec 6, 2003
1 parent e7b51a9 commit ee273b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/resource/view.php
Expand Up @@ -111,7 +111,9 @@

$embedded = false;

if (mimeinfo("icon", $fullurl) == "image.gif") { // It's an image
$inlinetypes = array('image/gif','image/jpg','image/png');

if (in_array(mimeinfo("type", $fullurl), $inlinetypes)) { // It's an image
$embedded = true;
$resourceimage = true;
} else {
Expand Down Expand Up @@ -291,4 +293,4 @@
break;
}

?>
?>

0 comments on commit ee273b6

Please sign in to comment.