src/wcmf/lib/io/ImageUtil.php
private static function makeRelative($location) {
    if (self::$scriptDirAbs == null) {
      self::$scriptDirAbs = dirname(FileUtil::realpath($_SERVER['SCRIPT_FILENAME'])).'/';
    }
    return URIUtil::makeRelative($location, self::$scriptDirAbs);
  }
private static function makeRelative($location) {
    if (self::$scriptDirAbs == null) {
      self::$scriptDirAbs = dirname(FileUtil::realpath($_SERVER['SCRIPT_FILENAME'])).'/';
    }
    return URIUtil::makeRelative($location, self::$scriptDirAbs);
  }
private static function makeRelative ( $ location ) { if ( self :: $ scriptDirAbs == null ) { self :: $ scriptDirAbs = dirname ( FileUtil :: realpath ( $ _SERVER [ 'SCRIPT_FILENAME' ] ) ) . '/' ; } return URIUtil :: makeRelative ( $ location , self :: $ scriptDirAbs ) ; }
Make the current location relative to the executed script
@param $location
@return String
Make the current location relative to the executed script