From 5fd8c2cf1b7bfdfa5ae62c1c172a0c043b142ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Tue, 31 Dec 2013 12:06:04 +0100 Subject: [PATCH] fml fixes --- application/core/FML/CustomUI.php | 1 + application/core/FML/Script/Script.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/core/FML/CustomUI.php b/application/core/FML/CustomUI.php index 885db46d..a99d5afa 100644 --- a/application/core/FML/CustomUI.php +++ b/application/core/FML/CustomUI.php @@ -137,6 +137,7 @@ class CustomUI { $domDocument = new \DOMDocument('1.0', $this->encoding); } $xmlElement = $domDocument->createElement($this->tagName); + $domDocument->appendChild($xmlElement); $settings = $this->getSettings(); foreach ($settings as $setting => $value) { if ($value === null) continue; diff --git a/application/core/FML/Script/Script.php b/application/core/FML/Script/Script.php index b85ee484..d2b0eb9e 100644 --- a/application/core/FML/Script/Script.php +++ b/application/core/FML/Script/Script.php @@ -404,7 +404,7 @@ if (Event.Control.HasClass(\"" . self::CLASS_PAGER . "\")) { */ private function getProfileLabels() { $profileScript = " -if (Event.Control.HasClass(\"" . self::CLASS_PROFILE . "\") { +if (Event.Control.HasClass(\"" . self::CLASS_PROFILE . "\")) { declare Login = LocalUser.Login; foreach (ControlClass in Event.Control.ControlClasses) { declare ClassParts = TextLib::Split(\"-\", ControlClass); @@ -426,7 +426,7 @@ if (Event.Control.HasClass(\"" . self::CLASS_PROFILE . "\") { */ private function getMapInfoLabels() { $mapInfoScript = " -if (Event.Control.HasClass(\"" . self::CLASS_MAPINFO . "\") { +if (Event.Control.HasClass(\"" . self::CLASS_MAPINFO . "\")) { ShowCurChallengeCard(); }"; $mapInfoLabels = Builder::getLabelImplementationBlock(self::LABEL_MOUSECLICK, $mapInfoScript);