From: short <> Date: Sun, 21 Apr 2002 00:54:49 +0000 (+0000) Subject: Fix failed MNGs imagesize detection (existing basename-matching GIF expected) X-Git-Url: https://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=commitdiff_plain;h=60a709272016a3082b7df61e3d116334c0de267f Fix failed MNGs imagesize detection (existing basename-matching GIF expected) --- diff --git a/common.php b/common.php index 3691b89..7644141 100644 --- a/common.php +++ b/common.php @@ -182,7 +182,7 @@ function img_size($width,$height) function img($file,$alt,$attrs="") { - list($width,$height)=getimagesize($file); + list($width,$height)=getimagesize(ereg_replace("\\.mng",".gif",$file)); $alt=htmlspecialchars($alt); return("\"$alt\"");