From 23ddeb539cb620d6897fecac189f14befcaa64f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 14 Jun 2014 19:08:07 +0200 Subject: [PATCH] method renamed --- application/core/ManiaControl.php | 2 +- application/core/ManiaExchange/ManiaExchangeManager.php | 4 ++-- application/core/Maps/MapManager.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 1acf68a7..78a43ffc 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -356,7 +356,7 @@ class ManiaControl implements CommandListener, TimerListener { } // Connect finished - $this->log("Server Connection successfully established!"); + $this->log('Server Connection successfully established!'); // Hide old widgets $this->client->sendHideManialinkPage(); diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index 792e89a5..8a7e8509 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -233,13 +233,13 @@ class ManiaExchangeManager { } /** - * Get Map Info Asynchronously + * Fetch Map Info asynchronously * * @param int $mapId * @param callable $function * @return bool */ - public function getMapInfo($mapId, callable $function) { + public function fetchMapInfo($mapId, callable $function) { // Get Title Prefix $titlePrefix = $this->maniaControl->mapManager->getCurrentMap()->getGame(); diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index a6ed2d31..21d73666 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -245,7 +245,7 @@ class MapManager implements CallbackListener { public function addMapFromMx($mapId, $login, $update = false) { if (is_numeric($mapId)) { // Check if map exists - $this->maniaControl->mapManager->mxManager->getMapInfo($mapId, function (MXMapInfo $mapInfo) use (&$login, &$update) { + $this->maniaControl->mapManager->mxManager->fetchMapInfo($mapId, function (MXMapInfo $mapInfo) use (&$login, &$update) { if (!$mapInfo || !isset($mapInfo->uploaded)) { // Invalid id $this->maniaControl->chat->sendError('Invalid MX-Id!', $login);