From: Jens Frank Date: Sun, 9 May 2004 10:55:47 +0000 (+0000) Subject: make image width an integer, not a real number X-Git-Tag: 1.3.0beta1~111 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a1509c0fd37a62ff9e28d7f8626c5a49283fd831;p=lhc%2Fweb%2Fwiklou.git make image width an integer, not a real number --- diff --git a/includes/Image.php b/includes/Image.php index de089e342a..324b51d42a 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -122,6 +122,9 @@ class Image global $wgImageMagickConvertCommand; global $wgUseImageMagick; global $wgUseSquid, $wgInternalServer; + + $width = IntVal( $width ); + $thumbName = $this->thumbName( $width ); $thumbPath = wfImageThumbDir( $thumbName )."/".$thumbName; $thumbUrl = $this->thumbUrl( $width ); @@ -133,7 +136,6 @@ class Image } # Sanity check $width - $width = IntVal( $width ); if( $width <= 0 ) { # BZZZT return "";