From 1f6ac618973e7801d6ffc718aa1b395b9bad5fe1 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 10 Nov 2013 19:23:22 +0100 Subject: [PATCH] added mx info to the map object --- application/core/map.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/core/map.php b/application/core/map.php index e83df03f..8f9eb594 100644 --- a/application/core/map.php +++ b/application/core/map.php @@ -26,7 +26,7 @@ class map { public $mapstyle = ''; public $titleuid = 0; // public $gbx; //needed? would be the whole gbx object - public $mx; //format? + public $mx = null; public $authorNick = ''; public $authorZone = ''; public $authorEInfo; //format? @@ -62,13 +62,14 @@ class map { $mapFetcher = new \GBXChallMapFetcher(true); try{ $mapFetcher->processFile($this->server->mapdir . $this->filename); - } catch (Exception $e) - { + } catch (Exception $e){ trigger_error($e->getMessage(), E_USER_WARNING); } $this->authorNick = $mapFetcher->authorNick; $this->authorEInfo = $mapFetcher->authorEInfo; $this->authorZone = $mapFetcher->authorZone; + + $this->mx = new \MXInfoFetcher('SM', $this->uid, false); //SM -> change to gameerkennung } } \ No newline at end of file