From 277e76f6418d4da5d32a0137a8bb469768f1783e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 16 May 2014 00:28:08 +0200 Subject: [PATCH] fixed applying of server setting 'NextUseChangingValidationSeed' --- application/core/Configurators/ServerSettings.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/core/Configurators/ServerSettings.php b/application/core/Configurators/ServerSettings.php index 0f406498..ddf3f66c 100644 --- a/application/core/Configurators/ServerSettings.php +++ b/application/core/Configurators/ServerSettings.php @@ -281,6 +281,15 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener { return true; } + $rewriteSettings = array('NextUseChangingValidationSeed' => 'UseChangingValidationSeed'); + foreach ($rewriteSettings as $oldName => $newName) { + if (array_key_exists($oldName, $newSettings)) { + $setting = $newSettings[$oldName]; + unset($newSettings[$oldName]); + $newSettings[$newName] = $setting; + } + } + try { $this->maniaControl->client->setServerOptions($newSettings); } catch (ServerOptionsException $e) {