From be1beb78e7325ff4012b3a3f255c6b7b163ae253 Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 6 Jan 2014 22:23:44 +0100 Subject: [PATCH] stripdirtymapnames --- application/core/Maps/MapList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index aca7ffce..30a72476 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -172,7 +172,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $descriptionLabel->setSize($width * 0.7, 4); $descriptionLabel->setTextSize(2); $descriptionLabel->setVisible(false); - $descriptionLabel->setText('Add-Map: $<' . $map->name . '$>'); + $descriptionLabel->setText('Add-Map: $<' . Formatter::stripDirtyCodes($map->name) . '$>'); $script->addTooltip($addQuad, $descriptionLabel); } @@ -348,7 +348,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { } // Display Maps - $array = array($id => $x + 5, $mxId => $x + 10, $map->name => $x + 20, $map->authorNick => $x + 68); + $array = array($id => $x + 5, $mxId => $x + 10, Formatter::stripDirtyCodes($map->name) => $x + 20, $map->authorNick => $x + 68); $this->maniaControl->manialinkManager->labelLine($mapFrame, $array); // TODO detailed mx info page with link to mxo // TODO action detailed map info