use newly renamed web method
This commit is contained in:
parent
baaea70d12
commit
754a676f97
@ -149,7 +149,7 @@ class ErrorHandler {
|
|||||||
$info = base64_encode($json);
|
$info = base64_encode($json);
|
||||||
|
|
||||||
$url = ManiaControl::URL_WEBSERVICE . 'errorreport?error=' . urlencode($info);
|
$url = ManiaControl::URL_WEBSERVICE . 'errorreport?error=' . urlencode($info);
|
||||||
$response = WebReader::loadUrl($url);
|
$response = WebReader::getUrl($url);
|
||||||
$content = $response->getContent();
|
$content = $response->getContent();
|
||||||
$success = json_decode($content);
|
$success = json_decode($content);
|
||||||
if ($success) {
|
if ($success) {
|
||||||
|
@ -20,7 +20,7 @@ abstract class FileUtil {
|
|||||||
* @see \ManiaControl\Utils\WebReader::loadUrl()
|
* @see \ManiaControl\Utils\WebReader::loadUrl()
|
||||||
*/
|
*/
|
||||||
public static function loadFile($url) {
|
public static function loadFile($url) {
|
||||||
$response = WebReader::loadUrl($url);
|
$response = WebReader::getUrl($url);
|
||||||
return $response->getContent();
|
return $response->getContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ class InstallMenu implements ConfiguratorMenu, ManialinkPageAnswerListener {
|
|||||||
$pageFrame = null;
|
$pageFrame = null;
|
||||||
|
|
||||||
$url = ManiaControl::URL_WEBSERVICE . 'plugins';
|
$url = ManiaControl::URL_WEBSERVICE . 'plugins';
|
||||||
$response = WebReader::loadUrl($url);
|
$response = WebReader::getUrl($url);
|
||||||
$dataJson = $response->getContent();
|
$dataJson = $response->getContent();
|
||||||
$pluginList = json_decode($dataJson);
|
$pluginList = json_decode($dataJson);
|
||||||
$index = 0;
|
$index = 0;
|
||||||
|
@ -202,7 +202,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
*/
|
*/
|
||||||
public function getPluginsUpdates() {
|
public function getPluginsUpdates() {
|
||||||
$url = ManiaControl::URL_WEBSERVICE . 'plugins';
|
$url = ManiaControl::URL_WEBSERVICE . 'plugins';
|
||||||
$response = WebReader::loadUrl($url);
|
$response = WebReader::getUrl($url);
|
||||||
$dataJson = $response->getContent();
|
$dataJson = $response->getContent();
|
||||||
$pluginData = json_decode($dataJson);
|
$pluginData = json_decode($dataJson);
|
||||||
if (!$pluginData || empty($pluginData)) {
|
if (!$pluginData || empty($pluginData)) {
|
||||||
@ -386,7 +386,7 @@ class PluginUpdateManager implements CallbackListener, CommandListener, TimerLis
|
|||||||
/** @var Plugin $pluginClass */
|
/** @var Plugin $pluginClass */
|
||||||
$pluginId = $pluginClass::getId();
|
$pluginId = $pluginClass::getId();
|
||||||
$url = ManiaControl::URL_WEBSERVICE . 'plugins/' . $pluginId;
|
$url = ManiaControl::URL_WEBSERVICE . 'plugins/' . $pluginId;
|
||||||
$response = WebReader::loadUrl($url);
|
$response = WebReader::getUrl($url);
|
||||||
$dataJson = $response->getContent();
|
$dataJson = $response->getContent();
|
||||||
$pluginVersion = json_decode($dataJson);
|
$pluginVersion = json_decode($dataJson);
|
||||||
if (!$pluginVersion) {
|
if (!$pluginVersion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user