Hi,
Can someone please help me with this error : Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in/homez.420/miboutiq/www/administrator/components/com_mobilejoomla/imagerescaler.class.php on line 18.
here is the code
<?php
/**
* Mobile Joomla!
*
www.mobilejoomla.com
*
* @version 0.9.12
* @license
www.gnu.org/licenses/gpl-2.0.htm GNU/GPL
* @copyright (C) 2008-2011 MobileJoomla!
* @date February 2011
*/
defined('_JEXEC') or die('Restricted access');
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');
class ImageRescaler
{
static $thumbdir = 'Resized';
static $addstyles = true;
static $forced_width = null;
static $forced_height = null;
static $scaledimage_width = null;
static $scaledimage_height = null;
static $scaletype = 0;
function RescaleImages($text, $scaletype = 0, $addstyles = false)
{
ImageRescaler::$scaletype = $scaletype;
ImageRescaler::$addstyles = $addstyles;
return preg_replace('#<img(\s[^>]*?)\s?/?>#ie', "'<img'.ImageRescaler::imageParsing('\\1').' />'", $text);
}
thanks in advance