From c2d72edadd2639c4dd854a3ad4daf29ebd4c4f2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 21 Oct 2009 16:52:22 +0200 Subject: [PATCH] menuv4 strict --- bin/mozilla/menuv4.pl | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/menuv4.pl b/bin/mozilla/menuv4.pl index 0420fee31..3b736bf41 100644 --- a/bin/mozilla/menuv4.pl +++ b/bin/mozilla/menuv4.pl @@ -32,15 +32,21 @@ # ####################################################################### -$menufile = "menu.ini"; use SL::Menu; use URI; +use strict; + +my $menufile = "menu.ini"; +my $locale; + 1; # end of main sub display { + my $form = $main::form; + $form->header(qq||); $form->{date} = clock_line(); @@ -55,6 +61,8 @@ sub display { } sub clock_line { + my $form = $main::form; + my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, $Jahr, $Wochentag, $Jahrestag, $Sommerzeit) = localtime(time); @@ -77,9 +85,12 @@ sub clock_line { } sub acc_menu { + my $form = $main::form; + my %myconfig = %main::myconfig; + $locale = Locale->new($myconfig{countrycode}, "menu"); - $mainlevel = $form->{level}; + my $mainlevel = $form->{level}; $mainlevel =~ s/\Q$mainlevel\E--//g; my $menu = new Menu "$menufile"; @@ -90,6 +101,10 @@ sub acc_menu { sub print_menu { my ($menu, $parent, $depth) = @_; + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $html; die if ($depth * 1 > 5); -- 2.20.1