git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaf9eed
)
Fix failed MNGs imagesize detection (existing basename-matching GIF expected)
author
short
<>
Sun, 21 Apr 2002 00:54:49 +0000
(
00:54
+0000)
committer
short
<>
Sun, 21 Apr 2002 00:54:49 +0000
(
00:54
+0000)
common.php
patch
|
blob
|
history
diff --git
a/common.php
b/common.php
index
3691b89
..
7644141
100644
(file)
--- 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("<img src=\"$file\" alt=\"$alt\" title=\"$alt\" ".img_size($width,$height)
.($attrs=="" ? "" : " ".$attrs)." />");