From 06b3893a27d9aba1afbc04f826ca01bcfed17af1 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 21 Apr 2020 17:44:41 +0200 Subject: [PATCH] fixed number mismatch declerations --- core/Maps/MapActions.php | 2 +- core/Update/UpdateManager.php | 5 ++--- libs/FML/Script/Features/Paging.php | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/core/Maps/MapActions.php b/core/Maps/MapActions.php index da96a7b7..2049f2ee 100644 --- a/core/Maps/MapActions.php +++ b/core/Maps/MapActions.php @@ -107,7 +107,7 @@ class MapActions implements CommunicationListener, UsageInformationAble { //TODO message // Force an EndMap on the MapQueue to set the next Map - $this->maniaControl->getMapManager()->getMapQueue()->endMap(null); + $this->maniaControl->getMapManager()->getMapQueue()->endMap(); // Ignore EndMap on MapQueue $this->maniaControl->getMapManager()->getMapQueue()->dontQueueNextMapChange(); diff --git a/core/Update/UpdateManager.php b/core/Update/UpdateManager.php index 637bf95b..6b4b54be 100644 --- a/core/Update/UpdateManager.php +++ b/core/Update/UpdateManager.php @@ -462,9 +462,8 @@ class UpdateManager implements CallbackListener, CommandListener, TimerListener, if (!$setting->setting != self::SETTING_UPDATECHECK_INTERVAL) { return; } - - $updateInterval = $setting->value; - $this->maniaControl->getTimerManager()->updateTimerListening($this, 'hourlyUpdateCheck', 1000 * 60 * 60, $updateInterval); + + $this->maniaControl->getTimerManager()->updateTimerListening($this, 'hourlyUpdateCheck', 1000 * 60 * 60); } /** diff --git a/libs/FML/Script/Features/Paging.php b/libs/FML/Script/Features/Paging.php index bb4fb1a9..553b1d55 100644 --- a/libs/FML/Script/Features/Paging.php +++ b/libs/FML/Script/Features/Paging.php @@ -387,9 +387,7 @@ class Paging extends ScriptFeature if (!is_int($maxPageNumber)) { $maxPageNumber = $maxPage->getPageNumber(); } - - $pagingId = $maxPage->getControl() - ->getId(true, true); + $pagingId = Builder::escapeText($maxPage->getControl() ->getId()); $pageLabelId = Builder::EMPTY_STRING;