From b2264930abcbc5d2582395a29a0469d8ac566719 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 9 Feb 2014 22:31:42 +0100 Subject: [PATCH] temp code disable --- application/core/Maps/MapList.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index a3d602c9..791c77c3 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -322,7 +322,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { } //Switch Map Voting - if ($this->maniaControl->pluginManager->isPluginActive(self::DEFAULT_CUSTOM_VOTE_PLUGIN)) { + /* if ($this->maniaControl->pluginManager->isPluginActive(self::DEFAULT_CUSTOM_VOTE_PLUGIN)) { $switchLabel = new Label_Button(); $mapFrame->add($switchLabel); $switchLabel->setX($width / 2 - 10); @@ -335,7 +335,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $switchLabel->setAction(self::ACTION_START_SWITCH_VOTE . '.' . ($id - 1)); $script->addTooltip($switchLabel, $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => 'Start Map-Switch vote: $<' . $map->name . '$>')); - } else if ($this->maniaControl->authenticationManager->checkPermission($player, MapManager::SETTING_PERMISSION_ADD_MAP)) { + } else */ if ($this->maniaControl->authenticationManager->checkPermission($player, MapManager::SETTING_PERMISSION_ADD_MAP)) { + // Switch to map $switchLabel = new Label_Button(); $mapFrame->add($switchLabel);