mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ipblocklist.cgi: Display reload request as notice instead of error.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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 " </class>\n";
|
||||
&Header::closebox();
|
||||
|
||||
Reference in New Issue
Block a user