Hi guys,
I kindly ask you to implement the following piece of code in the next release of MobileJoomla.
Before lines 181-182 in imagerescaler.class.php:
Please add the following:
The sense behind this check is that on an IIS webserver, if an image source starts with 2 double slashes (e.g. "//images/stories/Resized/image.gif" instead of "/images/stories/Resized/image.gif"), the rescaled image is not displayed. The above code takes care of this issue and reforms the URL if necessary.
Cheers,
Eric
I kindly ask you to implement the following piece of code in the next release of MobileJoomla.
Before lines 181-182 in imagerescaler.class.php:
if(file_exists($dest_imagepath))
return $dest_imageuri;
Please add the following:
if(substr($dest_imageuri,0,2) == '//')
$dest_imageuri = substr($dest_imageuri,1);
The sense behind this check is that on an IIS webserver, if an image source starts with 2 double slashes (e.g. "//images/stories/Resized/image.gif" instead of "/images/stories/Resized/image.gif"), the rescaled image is not displayed. The above code takes care of this issue and reforms the URL if necessary.
Cheers,
Eric