From f555af5f4a6946f69f587afe3a2cfa9bfa21a2a9 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 1 Jan 2014 20:27:14 +0100 Subject: [PATCH] added stripdirtycodes from servername to avoid $w --- application/plugins/WidgetPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/plugins/WidgetPlugin.php b/application/plugins/WidgetPlugin.php index dcc65c3f..606526e9 100644 --- a/application/plugins/WidgetPlugin.php +++ b/application/plugins/WidgetPlugin.php @@ -9,6 +9,7 @@ use FML\ManiaLink; use FML\Script\Script; use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\CallbackManager; +use ManiaControl\Formatter; use ManiaControl\ManiaControl; use ManiaControl\Manialinks\IconManager; use ManiaControl\Players\Player; @@ -185,7 +186,7 @@ class WidgetPlugin implements CallbackListener, Plugin { $label->setAlign(Control::CENTER, Control::CENTER); $label->setZ(0.2); $label->setTextSize(1.3); - $label->setText($map->name); + $label->setText(Formatter::stripDirtyCodes($map->name)); $label->setTextColor("FFF"); $label = new Label_Text();