mx update

This commit is contained in:
kremsy committed 2017-03-06 19:05:15 +01:00
1 parent 66c0c4a8e5
commit de2e9cae84
3 files changed
+25 -4

No files matched your search

+7 -1
View File
@@ -354,8 +354,14 @@ class MapManager implements CallbackListener, CommunicationListener {
return;
}
$url = $mapInfo->downloadurl;
if ($key = $this->maniaControl->getSettingManager()->getSettingValue($this, ManiaExchangeManager::SETTING_MX_KEY)) {
$url .= "&key=" . $key;
}
// Download the file
$this->maniaControl->getFileReader()->loadFile($mapInfo->downloadurl, function ($file, $error) use (
$this->maniaControl->getFileReader()->loadFile($url, function ($file, $error) use (
&$login, &$mapInfo, &$update
) {
if (!$file || $error) {