mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
menu: Fix warnings, clean code
This patch adds default values and removes a missing translation to fix "uninitialized value" and "odd number of elements" warnings. Removes function calls from functions.pl that have already been handled by the header before it is loaded by eval(). Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
a04b39daa7
commit
c13060fd4c
@@ -46,7 +46,7 @@ my $menu = \%menuhash;
|
||||
%settings = ();
|
||||
%ethsettings = ();
|
||||
%pppsettings = ();
|
||||
@URI = ();
|
||||
my @URI = split('\?', $ENV{'REQUEST_URI'});
|
||||
|
||||
### Make sure this is an SSL request
|
||||
if ($ENV{'SERVER_ADDR'} && $ENV{'HTTPS'} ne 'on') {
|
||||
@@ -573,3 +573,5 @@ sub get_manualpage_url() {
|
||||
# No manual page configured, return nothing
|
||||
return;
|
||||
}
|
||||
|
||||
1; # End of package "Header"
|
||||
|
||||
Reference in New Issue
Block a user