map add over mx fixed

This commit is contained in:
kremsy
2013-12-27 21:10:53 +01:00
parent 0f78148fe4
commit 904b4eb6e1
4 changed files with 22 additions and 14 deletions

View File

@ -83,7 +83,7 @@ class Map {
$this->comment = $this->mapFetcher->comment;
}
// TODO: define timeout if mx is down
// TODO: define timeout if mx is down,todo fetch all map infos at once (maybe way faster)
$serverInfo = $this->maniaControl->server->getSystemInfo();
$title = strtoupper(substr($serverInfo['TitleId'], 0, 2));
$this->mx = new \MXInfoFetcher($title, $this->uid, false);