fixed thumbnail in mx mapdata
This commit is contained in:
parent
5c6f2252c2
commit
c786a89704
@ -17,11 +17,11 @@ class MXMapInfo {
|
|||||||
* Public properties
|
* Public properties
|
||||||
*/
|
*/
|
||||||
public $prefix, $id, $uid, $name, $userid, $author, $uploaded, $updated, $type, $maptype;
|
public $prefix, $id, $uid, $name, $userid, $author, $uploaded, $updated, $type, $maptype;
|
||||||
public $titlepack, $style, $envir, $mood, $dispcost, $lightmap, $modname, $exever;
|
public $titlepack, $style, $envir, $mood, $dispcost, $lightmap, $modname, $exever;
|
||||||
public $exebld, $routes, $length, $unlimiter, $laps, $difficulty, $lbrating, $trkvalue;
|
public $exebld, $routes, $length, $unlimiter, $laps, $difficulty, $lbrating, $trkvalue;
|
||||||
public $replaytyp, $replayid, $replaycnt, $authorComment, $commentCount, $awards;
|
public $replaytyp, $replayid, $replaycnt, $authorComment, $commentCount, $awards;
|
||||||
public $pageurl, $replayurl, $imageurl, $thumburl, $downloadurl, $dir;
|
public $pageurl, $replayurl, $imageurl, $thumburl, $downloadurl, $dir;
|
||||||
public $ratingVoteCount, $ratingVoteAverage, $vehicleName;
|
public $ratingVoteCount, $ratingVoteAverage, $vehicleName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns map object with all available data from MX map data
|
* Returns map object with all available data from MX map data
|
||||||
@ -103,7 +103,7 @@ class MXMapInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($mx->HasThumbnail) {
|
if ($mx->HasThumbnail) {
|
||||||
$this->thumburl = 'http://' . $this->prefix . '.mania-exchange.com/' . $this->dir . '/screenshot/small/' . $this->id;
|
$this->thumburl = 'http://' . $this->prefix . '.mania-exchange.com/' . $this->dir . '/thumbnail/' . $this->id;
|
||||||
} else {
|
} else {
|
||||||
$this->thumburl = '';
|
$this->thumburl = '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user