]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
ipblocklist.cgi: Display reload request as notice instead of error.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 21 Jun 2022 15:52:54 +0000 (17:52 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:28:06 +0000 (17:28 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ipblocklist.cgi

index 5b46ded7932f5195b8902fb73fc1bd8f186acb1e..431ff1a37b05dbed2eda427502ec81860e7a9e44 100644 (file)
@@ -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 "<class name='base'>$errormessage\n";
                print "&nbsp;</class>\n";
        &Header::closebox();