2
0

Use new requestParams variable for AprilFoolsMode setting

This commit is contained in:
db-2001 2024-04-18 17:58:23 -04:00
parent dbc1b94124
commit 33b8ede492

View File

@ -431,7 +431,7 @@ public class Server : GlobalBase
SendResponse(HttpStatusCode.Accepted, response); SendResponse(HttpStatusCode.Accepted, response);
break; break;
case "Settings/AprilFoolsMode": case "Settings/AprilFoolsMode":
if (!requestVariables.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) || if (!requestParams.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) ||
bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled)) bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled))
{ {
SendResponse(HttpStatusCode.BadRequest, response); SendResponse(HttpStatusCode.BadRequest, response);