mx manager fix
This commit is contained in:
parent
8d5db2f0a9
commit
d4b4161f68
@ -7,7 +7,7 @@ use ManiaControl\Formatter;
|
|||||||
/**
|
/**
|
||||||
* Mania Exchange Map Info Object
|
* Mania Exchange Map Info Object
|
||||||
*
|
*
|
||||||
* @author xymph
|
* @author Xymph
|
||||||
* @updated lukas and steeffeen
|
* @updated lukas and steeffeen
|
||||||
*/
|
*/
|
||||||
class MXMapInfo {
|
class MXMapInfo {
|
||||||
@ -36,8 +36,10 @@ class MXMapInfo {
|
|||||||
|
|
||||||
if ($this->prefix == 'tm' || !property_exists($mx, "MapID")) {
|
if ($this->prefix == 'tm' || !property_exists($mx, "MapID")) {
|
||||||
$this->id = $mx->TrackID;
|
$this->id = $mx->TrackID;
|
||||||
|
$this->uid = $mx->TrackUID;
|
||||||
} else {
|
} else {
|
||||||
$this->id = $mx->MapID;
|
$this->id = $mx->MapID;
|
||||||
|
$this->uid = $mx->MapUID;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($mx->GbxMapName) || $mx->GbxMapName == '?') {
|
if (!isset($mx->GbxMapName) || $mx->GbxMapName == '?') {
|
||||||
@ -46,7 +48,6 @@ class MXMapInfo {
|
|||||||
$this->name = Formatter::stripDirtyCodes($mx->GbxMapName);
|
$this->name = Formatter::stripDirtyCodes($mx->GbxMapName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->uid = isset($mx->MapUID) ? $mx->MapUID : '';
|
|
||||||
$this->userid = $mx->UserID;
|
$this->userid = $mx->UserID;
|
||||||
$this->author = $mx->Username;
|
$this->author = $mx->Username;
|
||||||
$this->uploaded = $mx->UploadedAt;
|
$this->uploaded = $mx->UploadedAt;
|
||||||
|
Loading…
Reference in New Issue
Block a user