Beispiel #1
0
 public static function getImagesFolder()
 {
     $i = N2Filesystem::getInstance();
     if (defined('JPATH_NEXTEND_IMAGES')) {
         return $i->_basepath . JPATH_NEXTEND_IMAGES;
     }
     return $i->_basepath . '/images';
 }
Beispiel #2
0
 /**
  * @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;
 }