diff --git a/application/core/map.php b/application/core/map.php index 377f9965..9d70dfa6 100644 --- a/application/core/map.php +++ b/application/core/map.php @@ -22,13 +22,13 @@ class map { public $nbchecks = 0; public $score = 0; public $starttime = 0; - public $maptype; //format? - public $mapstyle; //format? - public $titleuid; //format? - public $gbx; //format? + public $maptype = ''; + public $mapstyle = ''; + public $titleuid = 0; + // public $gbx; //needed? would be the whole gbx object public $mx; //format? - public $authorNick; //format? - public $authorZone; //format? + public $authorNick = ''; + public $authorZone = ''; public $authorEInfo; //format? //Todo: check RPC infos @@ -59,21 +59,6 @@ class map { $this->name = 'undefined'; } - /* - * aseco trash: - * // obtain map's GBX data, MX info & records - - $map_item->mx = findMXdata($map_item->uid, true); - - // titleuid (is not in the GetMapInfos method..) - $map_item->titleuid = $map_item->gbx->titleUid; - - // author Informations from the GBXBaseFetcher - $map_item->authorNick = $map_item->gbx->authorNick; - $map_item->authorZone = $map_item->gbx->authorZone; - $map_item->authorEInfo = $map_item->gbx->authorEInfo; - * - */ $mapFetcher = new \GBXChallMapFetcher(true); try{ $mapFetcher->processFile($this->server->mapdir . $this->filename); @@ -81,6 +66,7 @@ class map { { trigger_error($e->getMessage(), E_USER_WARNING); } + $this->authorNick = $mapFetcher->authorNick; $this->authorEInfo = $mapFetcher->authorEInfo; $this->authorZone = $mapFetcher->authorZone;