removed unused variable

added missing use statement
This commit is contained in:
Steffen Schröder 2014-05-02 15:20:25 +02:00
parent dcaf247813
commit 36b76da5c9
5 changed files with 3 additions and 5 deletions

View File

@ -179,7 +179,6 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
} }
$manialink = new ManiaLink(self::MLID_MENU); $manialink = new ManiaLink(self::MLID_MENU);
$script = $manialink->getScript();
/* /*
* Admin Menu * Admin Menu

View File

@ -1,6 +1,7 @@
<?php <?php
namespace ManiaControl\Files; namespace ManiaControl\Files;
use ManiaControl\ManiaControl;
/** /**
* Backup Utility Class * Backup Utility Class

View File

@ -133,8 +133,6 @@ class ManiaExchangeList implements CallbackListener, ManialinkPageAnswerListener
$paging = new Paging(); $paging = new Paging();
$script->addFeature($paging); $script->addFeature($paging);
$pagesId = 'MxListPages';
// Main frame // Main frame
$frame = $this->maniaControl->manialinkManager->styleManager->getDefaultListFrame($script, $paging); $frame = $this->maniaControl->manialinkManager->styleManager->getDefaultListFrame($script, $paging);
$maniaLink->add($frame); $maniaLink->add($frame);

View File

@ -84,7 +84,7 @@ class ManiaExchangeManager {
trigger_error($saveMapStatement->error); trigger_error($saveMapStatement->error);
} }
//Take the uid out of the vektor //Take the uid out of the vector
if (isset($this->mxIdUidVector[$mxMapInfo->id])) { if (isset($this->mxIdUidVector[$mxMapInfo->id])) {
$uid = $this->mxIdUidVector[$mxMapInfo->id]; $uid = $this->mxIdUidVector[$mxMapInfo->id];
} else { } else {

View File

@ -121,7 +121,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$queueBuffer = $this->maniaControl->mapManager->mapQueue->getQueueBuffer(); $queueBuffer = $this->maniaControl->mapManager->mapQueue->getQueueBuffer();
// Get Maps // Get Maps
$mapList = array(); $mapList = null;
$pageCount = null; $pageCount = null;
if (is_array($maps)) { if (is_array($maps)) {
$mapList = array_slice($maps, $chunk, self::MAX_PAGES_PER_CHUNK * self::MAX_MAPS_PER_PAGE); $mapList = array_slice($maps, $chunk, self::MAX_PAGES_PER_CHUNK * self::MAX_MAPS_PER_PAGE);