mx object cleanup
This commit is contained in:
parent
2650db54e3
commit
7627546baa
@ -25,12 +25,15 @@ class MXMapInfo {
|
||||
*
|
||||
* @param String $prefix MX URL prefix
|
||||
* @param $mx
|
||||
* @internal param Object $map The MX map data from MXInfoSearcher
|
||||
* @return MXMapInfo
|
||||
*/
|
||||
public function __construct($prefix, $mx) {
|
||||
$this->prefix = $prefix;
|
||||
if ($mx) {
|
||||
|
||||
if (!$mx) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->prefix == 'tm') {
|
||||
$this->dir = 'tracks';
|
||||
$this->id = $mx->TrackID;
|
||||
@ -113,5 +116,4 @@ class MXMapInfo {
|
||||
$this->replayurl = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user