use newly renamed web method
This commit is contained in:
parent
baaea70d12
commit
754a676f97
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user