undefined function basefile() in imagerescaler.class.php

toshiki
14 years, 2 months ago
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
dryabov
14 years, 2 months ago
Thanks again. It's improbable typing error.

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.