removed old php 5.3 compatibility code

This commit is contained in:
Steffen Schröder
2014-06-17 23:27:28 +02:00
parent ea223a6d26
commit 2e0a0359dd
11 changed files with 205 additions and 235 deletions

View File

@ -131,13 +131,12 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
}
// search for matching maps
$self = $this;
$this->maniaControl->mapManager->mxManager->getMapsAsync(function (array $maps) use (&$self, &$player) {
$this->maniaControl->mapManager->mxManager->getMapsAsync(function (array $maps) use (&$player) {
if (!$maps) {
$self->maniaControl->chat->sendError('No maps found, or MX is down!', $player->login);
$this->maniaControl->chat->sendError('No maps found, or MX is down!', $player->login);
return;
}
$self->showManiaExchangeList($maps, $player);
$this->showManiaExchangeList($maps, $player);
}, $searchString, $author, $environment);
}