Environment:
Mobile Joomla! 0.9.9 Joomla! 1.5.22 PHP 5.1.6
After upgrading Mobile Joomla! to 0.9.9, I encountered the following error on my ipad;
Fatal error: Call to undefined function basefile() in /..../administrator/components/com_mobilejoomla/imagerescaler.class.php on line 91
It will be fixed by the following change;
--- administrator/components/com_mobilejoomla/imagerescaler.class.php.orig 2010-12-10 12:30:58.000000000 +0900
+++ administrator/components/com_mobilejoomla/imagerescaler.class.php 2010-12-10 12:39:11.000000000 +0900
@@ -88,7 +88,7 @@
$src_imagename = pathinfo($imageurl, PATHINFO_FILENAME);
else
{
- $base = basefile($imageurl);
+ $base = basename($imageurl);
$src_imagename = substr($base, 0, strrpos($base, '.'));
}
$src_ext = strtolower(pathinfo($imageurl, PATHINFO_EXTENSION));
Regards,
toshiki