PDA

View Full Version : 'On the Fly' Auto Thumbnailer using GD Library



michael_s
05-08-2008, 06:22 AM
in the File includes/functions/html_output.php in the function tep_image there is a check if the image size should be calculated:

// Do we calculate the image size?
if (CONFIG_CALCULATE_IMAGE_SIZE [...] )

This check is incorrect because in the admininterface the CONFIG_CALCULATE_IMAGE_SIZE is set to "true" or "false"(both strings!) and therefor this part of the check is everytime valid!

it should read:
if(CONFIG_CALCULATE_IMAGE_SIZE == "true" [...]

More... (http://addons.oscommerce.com/info/2226)