From ff082c4ad49670de654a6929bdb1dff17e5ab6a6 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 15 Dec 2013 12:41:43 +0100 Subject: [PATCH] changed configurator MLID --- application/core/Configurators/Configurator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/core/Configurators/Configurator.php b/application/core/Configurators/Configurator.php index ddc04d9c..38d1ed5b 100644 --- a/application/core/Configurators/Configurator.php +++ b/application/core/Configurators/Configurator.php @@ -5,6 +5,7 @@ namespace ManiaControl\Configurators; use ManiaControl\ManiaControl; use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\CallbackManager; +use ManiaControl\Manialinks\ManialinkManager; use ManiaControl\Manialinks\ManialinkPageAnswerListener; use ManiaControl\Players\Player; use FML\ManiaLink; @@ -32,7 +33,6 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener { /** * Constants */ - const MLID_MENU = 'Configurator.Menu.MLID'; const ACTION_TOGGLEMENU = 'Configurator.ToggleMenuAction'; const ACTION_SAVECONFIG = 'Configurator.SaveConfigAction'; const SETTING_MENU_POSX = 'Menu Widget Position: X'; @@ -148,7 +148,7 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener { * @param Player $player */ public function hideMenu(Player $player) { - $emptyManialink = new ManiaLink(self::MLID_MENU); + $emptyManialink = new ManiaLink(ManialinkManager::MAIN_MLID); $manialinkText = $emptyManialink->render()->saveXML(); $this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login); $this->maniaControl->manialinkManager->enableAltMenu($player); @@ -175,7 +175,7 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener { $manialinks = new ManiaLinks(); - $manialink = new ManiaLink(self::MLID_MENU); + $manialink = new ManiaLink(ManialinkManager::MAIN_MLID); $manialinks->add($manialink); $frame = new Frame();