From 60a709272016a3082b7df61e3d116334c0de267f Mon Sep 17 00:00:00 2001 From: short <> Date: Sun, 21 Apr 2002 00:54:49 +0000 Subject: [PATCH] Fix failed MNGs imagesize detection (existing basename-matching GIF expected) --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\""); -- 1.8.3.1