Re: [SMARTY-DEV] html_image width and height

From: Date: Thu, 06 Mar 2003 21:40:23 +0000
Subject: Re: [SMARTY-DEV] html_image width and height
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-897@lists.php.net to get a copy of this message
fixed in CVS, thanks. Monte On Thu, 2003-03-06 at 15:32, Gerard wrote: > Looks like the indexes are off by one in html_image: > > if(!isset($params['width'])) { > $width = $_image_data[1]; > } > if(!isset($params['height'])) { > $height = $_image_data[2]; > } > > The docs state 0 is width, 1 is height, 2 is image type. I get images with a > height of 1 for GIF, 2 for JPEG, ... ;P > > Gerard -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#897) next »