Welcome, Guest
Username Password: Remember me

undefined function basefile() in imagerescaler.class.php
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: undefined function basefile() in imagerescaler.class.php

undefined function basefile() in imagerescaler.class.php 13 years, 11 months ago #672

  • toshiki
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
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

undefined function basefile() in imagerescaler.class.php 13 years, 11 months ago #2708

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Thanks again. It's improbable typing error.
  • Page:
  • 1
Time to create page: 0.09 seconds

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.