small fix
This commit is contained in:
parent
deeb05e681
commit
40002c0ecd
@ -15,7 +15,7 @@ class MXMapInfo {
|
||||
public $titlepack, $style, $envir, $mood, $dispcost, $lightmap, $modname, $exever;
|
||||
public $exebld, $routes, $length, $unlimiter, $laps, $difficulty, $lbrating, $trkvalue;
|
||||
public $replaytyp, $replayid, $replaycnt, $acomment, $awards, $comments, $rating;
|
||||
public $ratingex, $ratingcnt, $pageurl, $replayurl, $imageurl, $thumburl, $dloadurl;
|
||||
public $ratingex, $ratingcnt, $pageurl, $replayurl, $imageurl, $thumburl, $downLoadUrl;
|
||||
|
||||
/**
|
||||
* Returns map object with all available data from MX map data
|
||||
@ -94,7 +94,7 @@ class MXMapInfo {
|
||||
$this->pageurl = 'http://' . $this->prefix . '.mania-exchange.com/' . $dir . '/view/' . $this->id;
|
||||
$this->imageurl = 'http://' . $this->prefix . '.mania-exchange.com/' . $dir . '/screenshot/normal/' . $this->id;
|
||||
$this->thumburl = 'http://' . $this->prefix . '.mania-exchange.com/' . $dir . '/screenshot/small/' . $this->id;
|
||||
$this->dloadurl = 'http://' . $this->prefix . '.mania-exchange.com/' . $dir . '/download/' . $this->id;
|
||||
$this->downLoadUrl = 'http://' . $this->prefix . '.mania-exchange.com/' . $dir . '/download/' . $this->id;
|
||||
|
||||
if ($this->prefix == 'tm' && $this->replayid > 0) {
|
||||
$this->replayurl = 'http://' . $this->prefix . '.mania-exchange.com/replays/download/' . $this->replayid;
|
||||
|
@ -502,8 +502,6 @@ class MapManager implements CallbackListener {
|
||||
$serverInfo = $this->maniaControl->client->getSystemInfo();
|
||||
$title = strtolower(substr($serverInfo->titleId, 0, 2));
|
||||
|
||||
$url = "http://{$title}.mania-exchange.com/tracks/download/{$mapInfo->id}";
|
||||
|
||||
//Download the file
|
||||
$function = function ($file, $error) use (&$login, &$mapInfo, &$mapDir, &$update) {
|
||||
if (!$file) {
|
||||
@ -513,7 +511,7 @@ class MapManager implements CallbackListener {
|
||||
}
|
||||
$this->processMapFile($file, $mapInfo, $mapDir, $login, $update);
|
||||
};
|
||||
$this->maniaControl->fileReader->loadFile($url, $function);
|
||||
$this->maniaControl->fileReader->loadFile($mapInfo->downLoadUrl, $function);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user