reverted FML update

This commit is contained in:
Jocy
2017-05-12 20:04:50 +02:00
parent e816961d28
commit 640d285c78
9 changed files with 18 additions and 28 deletions

View File

@ -52,7 +52,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
/*
* Constants
*/
const VERSION = '0.211';
const VERSION = '0.212';
const API_VERSION = '2013-04-16';
const MIN_DEDIVERSION = '2017-05-03_21_00';
const SCRIPT_TIMEOUT = 40;

View File

@ -146,14 +146,14 @@ class SidebarMenuManager implements UsageInformationAble, CallbackListener {
public function deleteMenuEntry(SidebarMenuEntryRenderable $render, $id, $unregisterClass = false) {
foreach ($this->menuEntries as $k => $entry) {
if ($entry == $id) {
array_splice($this->menuEntries, $k, 1);
unset($this->menuEntries[$k]);
$this->yPositions = array();
}
}
foreach ($this->registeredClasses as $k => $class) {
if ($class == $render && $unregisterClass) {
array_splice($this->registeredClasses, $k, 1);
unset($this->registeredClasses[$k]);
}else{
$class->renderMenuEntry();
}