Fix camelCase method

This commit is contained in:
Andy Miller
2015-02-18 12:54:01 -07:00
parent d6bed5441d
commit a1ab94ffdd
2 changed files with 3 additions and 5 deletions

View File

@@ -201,7 +201,7 @@ trait ParsedownGravTrait
}
} else {
// not a current page media file, see if it needs converting to relative
$excerpt['element']['attributes']['src'] = Uri::build_url($url);
$excerpt['element']['attributes']['src'] = Uri::buildUrl($url);
}
}
}
@@ -224,14 +224,12 @@ trait ParsedownGravTrait
// if this is a link
if (isset($excerpt['element']['attributes']['href'])) {
$url = parse_url(htmlspecialchars_decode($excerpt['element']['attributes']['href']));
// if there is no scheme, the file is local
if (!isset($url['scheme'])) {
// convert the URl is required
$excerpt['element']['attributes']['href'] = $this->convertUrl(Uri::build_url($url));
$excerpt['element']['attributes']['href'] = $this->convertUrl(Uri::buildUrl($url));
}
}

View File

@@ -365,7 +365,7 @@ class Uri
* @param $parsed_url
* @return string
*/
public static function build_url($parsed_url)
public static function buildUrl($parsed_url)
{
$scheme = isset($parsed_url['scheme']) ? $parsed_url['scheme'] . '://' : '';
$host = isset($parsed_url['host']) ? $parsed_url['host'] : '';