From fe3a57f66fde60ad6d4d44e0f84b595d24e4d1ff Mon Sep 17 00:00:00 2001 From: kremsy Date: Thu, 9 Jan 2014 23:58:47 +0100 Subject: [PATCH] bugfix --- .../core/ManiaExchange/ManiaExchangeInfoSearcher.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/core/ManiaExchange/ManiaExchangeInfoSearcher.php b/application/core/ManiaExchange/ManiaExchangeInfoSearcher.php index 9343071c..de77428d 100644 --- a/application/core/ManiaExchange/ManiaExchangeInfoSearcher.php +++ b/application/core/ManiaExchange/ManiaExchangeInfoSearcher.php @@ -187,6 +187,10 @@ class ManiaExchangeInfoSearcher { //TODO rename to ManiaExchangeManager $this->maniaControl->client->query('GetModeScriptInfo'); $scriptInfos = $this->maniaControl->client->getResponse(); + /* + $this->maniaControl->client->query('SendModeScriptCommands', array('Command_ForceWarmUp' => True)); + $test = $this->maniaControl->client->getResponse(); Just a test, and its working!*/ + $mapTypes = $scriptInfos["CompatibleMapTypes"]; // compile search URL @@ -196,7 +200,7 @@ class ManiaExchangeInfoSearcher { //TODO rename to ManiaExchangeManager $url .= '&environments=' . $this->getEnvironment($env); } if($name != '') { - $url .= '&trackname=' . $name; + $url .= '&trackname=' . str_replace(" ", "%20", $name); } if($author != '') { $url .= '&author=' . $author;