mx update

This commit is contained in:
kremsy
2017-03-06 19:03:09 +01:00
parent 66c0c4a8e5
commit de2e9cae84
3 changed files with 25 additions and 4 deletions

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) {