From 9fdcb1ae4c84b5177ae721e67823bc7946ccc746 Mon Sep 17 00:00:00 2001 From: Jocy Date: Tue, 11 Apr 2017 15:08:21 +0200 Subject: [PATCH] Begin of map search in map list --- core/Maps/MapList.php | 2 ++ core/Maps/MapManager.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Maps/MapList.php b/core/Maps/MapList.php index c2ad5d3d..abdc16ed 100644 --- a/core/Maps/MapList.php +++ b/core/Maps/MapList.php @@ -513,6 +513,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $index++; } + //var_dump($this->maniaControl->getMapManager()->searchMaps('nadeolabs')); + $this->maniaControl->getManialinkManager()->displayWidget($maniaLink, $player, self::WIDGET_NAME); } diff --git a/core/Maps/MapManager.php b/core/Maps/MapManager.php index 4cd952f8..0cd52e9c 100644 --- a/core/Maps/MapManager.php +++ b/core/Maps/MapManager.php @@ -993,7 +993,6 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform }); } - /** * Searches the ManiaControl maps database * @@ -1009,6 +1008,7 @@ class MapManager implements CallbackListener, CommunicationListener, UsageInform } } + return $result; }