updated method calls for plugin update manager
This commit is contained in:
parent
17bbc89bc1
commit
6a193a2fb5
@ -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);
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user