cleanup
This commit is contained in:
parent
47809cd1c5
commit
0daf046247
@ -543,8 +543,6 @@ class MapManager implements CallbackListener {
|
|||||||
* @param bool $update
|
* @param bool $update
|
||||||
*/
|
*/
|
||||||
public function addMapFromMx($mapId, $login, $update = false) {
|
public function addMapFromMx($mapId, $login, $update = false) {
|
||||||
$mapDir = $this->maniaControl->client->getMapsDirectory();
|
|
||||||
|
|
||||||
if (is_numeric($mapId)) {
|
if (is_numeric($mapId)) {
|
||||||
// Check if map exists
|
// Check if map exists
|
||||||
$this->maniaControl->mapManager->mxManager->getMapInfo($mapId, function (MXMapInfo $mapInfo) use ($login) {
|
$this->maniaControl->mapManager->mxManager->getMapInfo($mapId, function (MXMapInfo $mapInfo) use ($login) {
|
||||||
|
Loading…
Reference in New Issue
Block a user