fixed applying of server setting 'NextUseChangingValidationSeed'

This commit is contained in:
Steffen Schröder 2014-05-16 00:28:08 +02:00
parent db3d59d47f
commit 277e76f641

View File

@ -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) {