From 6a193a2fb5f6a6eb2c650d52ce7301dff63c9e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 2 May 2014 04:04:13 +0200 Subject: [PATCH] updated method calls for plugin update manager --- application/core/ManiaControl.php | 4 ++-- application/core/Plugins/PluginMenu.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index bd408f63..e8587cb4 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -332,7 +332,7 @@ class ManiaControl implements CommandListener, TimerListener { // Check if the version of the server is high enough $version = $this->client->getVersion(); if ($version->build < self::MIN_DEDIVERSION) { - trigger_error("The server has version " . $version->build . ", while at least " . self::MIN_DEDIVERSION . " is required!", E_USER_ERROR); + trigger_error("The Server has Version '{$version->build}', while at least '" . self::MIN_DEDIVERSION . "' is required!", E_USER_ERROR); } // OnInit callback @@ -340,7 +340,7 @@ class ManiaControl implements CommandListener, TimerListener { // Load plugins $this->pluginManager->loadPlugins(); - $this->updateManager->checkPluginsUpdate(); + $this->updateManager->pluginUpdateManager->checkPluginsUpdate(); // AfterInit callback $this->callbackManager->triggerCallback(CallbackManager::CB_AFTERINIT); diff --git a/application/core/Plugins/PluginMenu.php b/application/core/Plugins/PluginMenu.php index 6ea9891c..5c172cfa 100644 --- a/application/core/Plugins/PluginMenu.php +++ b/application/core/Plugins/PluginMenu.php @@ -242,7 +242,7 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu, ManialinkPageAns // Plugin pages $pageFrames = array(); $y = 0.; - $pluginUpdates = $this->maniaControl->updateManager->getPluginsUpdates(); + $pluginUpdates = $this->maniaControl->updateManager->pluginUpdateManager->getPluginsUpdates(); usort($pluginClasses, function($a, $b) { return strcmp($a::getName(), $b::getName());