public static function getImagesFolder() { $i = N2Filesystem::getInstance(); if (defined('JPATH_NEXTEND_IMAGES')) { return $i->_basepath . JPATH_NEXTEND_IMAGES; } return $i->_basepath . '/images'; }
/** * @param $url * * @return mixed */ public static function absoluteURLToPath($url) { $baseUri = N2Uri::getBaseUri(); if (substr($url, 0, strlen($baseUri)) == $baseUri) { $i = N2Filesystem::getInstance(); return str_replace($baseUri, $i->_basepath, $url); } return $url; }