diff --git a/application/core/ErrorHandler.php b/application/core/ErrorHandler.php index c05feeba..8f6ba12a 100644 --- a/application/core/ErrorHandler.php +++ b/application/core/ErrorHandler.php @@ -149,7 +149,7 @@ class ErrorHandler { $info = base64_encode($json); $url = ManiaControl::URL_WEBSERVICE . 'errorreport?error=' . urlencode($info); - $response = WebReader::loadUrl($url); + $response = WebReader::getUrl($url); $content = $response->getContent(); $success = json_decode($content); if ($success) { diff --git a/application/core/Files/FileUtil.php b/application/core/Files/FileUtil.php index b539a809..29817d2b 100644 --- a/application/core/Files/FileUtil.php +++ b/application/core/Files/FileUtil.php @@ -20,7 +20,7 @@ abstract class FileUtil { * @see \ManiaControl\Utils\WebReader::loadUrl() */ public static function loadFile($url) { - $response = WebReader::loadUrl($url); + $response = WebReader::getUrl($url); return $response->getContent(); } diff --git a/application/core/Plugins/InstallMenu.php b/application/core/Plugins/InstallMenu.php index a3fda412..4480425b 100644 --- a/application/core/Plugins/InstallMenu.php +++ b/application/core/Plugins/InstallMenu.php @@ -74,7 +74,7 @@ class InstallMenu implements ConfiguratorMenu, ManialinkPageAnswerListener { $pageFrame = null; $url = ManiaControl::URL_WEBSERVICE . 'plugins'; - $response = WebReader::loadUrl($url); + $response = WebReader::getUrl($url); $dataJson = $response->getContent(); $pluginList = json_decode($dataJson); $index = 0; diff --git a/application/core/Update/PluginUpdateManager.php b/application/core/Update/PluginUpdateManager.php index 5e0bb687..6916e3fe 100644 --- a/application/core/Update/PluginUpdateManager.php +++ b/application/core/Update/PluginUpdateManager.php @@ -202,7 +202,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis */ public function getPluginsUpdates() { $url = ManiaControl::URL_WEBSERVICE . 'plugins'; - $response = WebReader::loadUrl($url); + $response = WebReader::getUrl($url); $dataJson = $response->getContent(); $pluginData = json_decode($dataJson); if (!$pluginData || empty($pluginData)) { @@ -386,7 +386,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis /** @var Plugin $pluginClass */ $pluginId = $pluginClass::getId(); $url = ManiaControl::URL_WEBSERVICE . 'plugins/' . $pluginId; - $response = WebReader::loadUrl($url); + $response = WebReader::getUrl($url); $dataJson = $response->getContent(); $pluginVersion = json_decode($dataJson); if (!$pluginVersion) {