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);
$script = $manialink->getScript();
/*
* Admin Menu

View File

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

View File

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

View File

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

View File

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