diff --git a/application/core/Utils/WebReader.php b/application/core/Utils/WebReader.php index eb78e62e..2f6d12b6 100644 --- a/application/core/Utils/WebReader.php +++ b/application/core/Utils/WebReader.php @@ -22,7 +22,7 @@ abstract class WebReader { * @param callable $function * @return Response */ - public static function loadUrl($url, callable $function = null) { + public static function getUrl($url, callable $function = null) { $request = static::newRequest($url); $response = $request->send(); if ($function) { @@ -31,6 +31,17 @@ abstract class WebReader { return $response; } + /** + * @deprecated + * @see WebReader::getUrl() + */ + public static function loadUrl($url, callable $function = null) { + if ($function) { + return static::getUrl($url, $function); + } + return static::getUrl($url); + } + /** * Create a new cURL Request for the given URL *