From: Stefan Schantl Date: Tue, 21 Jun 2022 15:52:54 +0000 (+0200) Subject: ipblocklist.cgi: Display reload request as notice instead of error. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fipblocklist-final;p=people%2Fstevee%2Fipfire-2.x.git ipblocklist.cgi: Display reload request as notice instead of error. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/ipblocklist.cgi b/html/cgi-bin/ipblocklist.cgi index 5b46ded793..431ff1a37b 100644 --- a/html/cgi-bin/ipblocklist.cgi +++ b/html/cgi-bin/ipblocklist.cgi @@ -47,6 +47,7 @@ my %cgiparams = ('ACTION' => ''); ############################################################################### my $errormessage = ''; +my $headline = "$Lang::tr{'error message'}"; my $updating = 0; my %mainsettings; my %color; @@ -122,6 +123,7 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") { &General::firewall_config_changed(); # Display notice about a required reload of the firewall. + $headline = "$Lang::tr{'notice'}"; $errormessage = "$Lang::tr{'fw rules reload notice'}"; } } @@ -251,7 +253,7 @@ END #------------------------------------------------------------------------------ sub error { - &Header::openbox('100%', 'left', $Lang::tr{'error messages'}); + &Header::openbox('100%', 'left', $headline); print "$errormessage\n"; print " \n"; &Header::closebox();