use newly renamed web method

This commit is contained in:
Steffen Schröder 2014-08-25 15:29:45 +02:00
parent baaea70d12
commit 754a676f97
4 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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();
}

View File

@ -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;

View File

@ -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) {