updated method calls for plugin update manager

This commit is contained in:
Steffen Schröder 2014-05-02 04:04:13 +02:00
parent 17bbc89bc1
commit 6a193a2fb5
2 changed files with 3 additions and 3 deletions

View File

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

View File

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