From 233c8824a549ce48ed60ec3e79449ab6d6d337f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Tue, 31 Dec 2013 11:37:03 +0100 Subject: [PATCH] custom ui rendering improved --- application/core/Manialinks/CustomUIManager.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/application/core/Manialinks/CustomUIManager.php b/application/core/Manialinks/CustomUIManager.php index 47afbc52..b97f7a6a 100644 --- a/application/core/Manialinks/CustomUIManager.php +++ b/application/core/Manialinks/CustomUIManager.php @@ -2,7 +2,6 @@ namespace ManiaControl\Manialinks; - use FML\CustomUI; use ManiaControl\ManiaControl; use ManiaControl\Callbacks\CallbackListener; @@ -10,7 +9,6 @@ use ManiaControl\Callbacks\CallbackManager; use ManiaControl\Players\Player; use ManiaControl\Players\PlayerManager; - /** * Class managing the Custom UI Settings * @@ -58,11 +56,7 @@ class CustomUIManager implements CallbackListener { * @param Player $player */ private function updateManialink(Player $player = null) { - // TODO: improve rendering after FML update - $domDocument = new \DOMDocument(); - $element = $this->customUI->render($domDocument); - $domDocument->appendChild($element); - $manialinkText = $domDocument->saveXML(); + $manialinkText = $this->customUI->render()->saveXML(); if ($player) { $this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login); return;