From 93b22306539f3b24354632a3420cd0e4d07766db Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 30 Apr 2014 00:17:57 +0200 Subject: [PATCH] mx fix --- application/core/Maps/MapManager.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 33c7cc79..a6759b6d 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -571,10 +571,10 @@ class MapManager implements CallbackListener { } return array_slice($this->maps, $offset, $length); } - + /** * Get the Number of Maps - * + * * @return int */ public function getMapsCount() { @@ -613,9 +613,8 @@ class MapManager implements CallbackListener { // TODO hardcoded during closed beta, later take just $mapInfo->url again $url = 'http://' . $mapInfo->prefix . '.mania-exchange.com/' . $mapInfo->dir . '/download/' . $mapInfo->id; - if ($self->maniaControl->settingManager->getSetting($self->mxManager, ManiaExchangeManager::SETTING_MP3_BETA_TESTING)) { - $url .= '?key=t42kEMjzH7xpAjBFHAvEkC7rqAlw'; - } + $url .= '?key=t42kEMjzH7xpAjBFHAvEkC7rqAlw'; + // Download the file $self->maniaControl->fileReader->loadFile($url, function ($file, $error) use (&$self, &$login, &$mapInfo, &$update) {