Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv30077/ecrire
Modified Files:
inc_logos.php3
Log Message:
mechants warning sur getimagesize (rezo.net)
Index: inc_logos.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_logos.php3,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- inc_logos.php3 24 Oct 2004 06:24:33 -0000 1.60
+++ inc_logos.php3 24 Oct 2004 13:13:30 -0000 1.61
@@ -224,7 +224,7 @@
$creation = true;
// calculer la taille
- if ($srcsize = getimagesize($image)) {
+ if ($srcsize = @getimagesize($image)) {
$srcWidth=$srcsize[0];
$srcHeight=$srcsize[1];
list ($destWidth,$destHeight) = image_ratio($srcWidth, $srcHeight, $maxWidth, $maxHeight);
@@ -425,7 +425,7 @@
$height = $preview['height'];
return "<img src='$vignette' name='$name' border='0' align='$align' alt='' hspace='$espace' vspace='$espace' width='$width' height='$height' class='spip_logos' />";
}
- else if ($taille_origine = getimagesize($logo)) {
+ else if ($taille_origine = @getimagesize($logo)) {
list ($destWidth,$destHeight) = image_ratio($taille_origine[0], $taille_origine[1], $taille, $taille_y);
return "<img src='$logo' name='$name' width='$destWidth' height='$destHeight' border='0' align='$align' alt='' hspace='$espace' vspace='$espace' class='spip_logos' />";
}