removed unused variable
added missing use statement
This commit is contained in:
parent
dcaf247813
commit
36b76da5c9
@ -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
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace ManiaControl\Files;
|
namespace ManiaControl\Files;
|
||||||
|
use ManiaControl\ManiaControl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Backup Utility Class
|
* Backup Utility Class
|
||||||
|
@ -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);
|
||||||
|
@ -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 {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user