code/libraries/joomlatools/library/template/locator/file.php
public function qualify($url, $base)
    {
        if(!parse_url($url, PHP_URL_SCHEME))
        {
            if ($url[0] != '/')
            {
                //Relative path
                $url = dirname($base) . '/' . $url;
            }
            else
            {
                //Absolute path
                $url = parse_url($base, PHP_URL_SCHEME) . ':/' . $url;
            }
        }

        return $this->normalise($url);
    }
public function qualify($url, $base)
    {
        if(!parse_url($url, PHP_URL_SCHEME))
        {
            if ($url[0] != '/')
            {
                //Relative path
                $url = dirname($base) . '/' . $url;
            }
            else
            {
                //Absolute path
                $url = parse_url($base, PHP_URL_SCHEME) . ':/' . $url;
            }
        }

        return $this->normalise($url);
    }
public function qualify ( $ url , $ base ) { if ( ! parse_url ( $ url , PHP_URL_SCHEME ) ) { if ( $ url [ 0 ] != '/' ) { //Relative path $ url = dirname ( $ base ) . '/' . $ url ; } else { //Absolute path $ url = parse_url ( $ base , PHP_URL_SCHEME ) . ':/' . $ url ; } } return $ this -> normalise ( $ url ) ; }
Qualify a template url

@param  string $url   The template to qualify
@param  string $base  A fully qualified template url used to qualify.
@return string|false The qualified template path or FALSE if the path could not be qualified
Qualify a template url