Use new requestParams variable for AprilFoolsMode setting
This commit is contained in:
parent
dbc1b94124
commit
33b8ede492
@ -431,7 +431,7 @@ public class Server : GlobalBase
|
||||
SendResponse(HttpStatusCode.Accepted, response);
|
||||
break;
|
||||
case "Settings/AprilFoolsMode":
|
||||
if (!requestVariables.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) ||
|
||||
if (!requestParams.TryGetValue("enabled", out string? aprilFoolsModeEnabledStr) ||
|
||||
bool.TryParse(aprilFoolsModeEnabledStr, out bool aprilFoolsModeEnabled))
|
||||
{
|
||||
SendResponse(HttpStatusCode.BadRequest, response);
|
||||
|
Loading…
Reference in New Issue
Block a user