From a1ab94ffdd12fac89ca7f276e7a65cca73c78e10 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 18 Feb 2015 12:54:01 -0700 Subject: [PATCH] Fix camelCase method --- system/src/Grav/Common/Markdown/ParsedownGravTrait.php | 6 ++---- system/src/Grav/Common/Uri.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/system/src/Grav/Common/Markdown/ParsedownGravTrait.php b/system/src/Grav/Common/Markdown/ParsedownGravTrait.php index 4cdbe0c6b..e972e471c 100644 --- a/system/src/Grav/Common/Markdown/ParsedownGravTrait.php +++ b/system/src/Grav/Common/Markdown/ParsedownGravTrait.php @@ -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)); } } diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index 5658d335c..152d390cb 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -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'] : '';