From 7f8cada2276e50879226ea553006ca7c714fac6a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 21 Oct 2009 16:42:40 +0200 Subject: [PATCH] menuv3 strict --- bin/mozilla/menuv3.pl | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/menuv3.pl b/bin/mozilla/menuv3.pl index 02a465e7d..683cabfa2 100644 --- a/bin/mozilla/menuv3.pl +++ b/bin/mozilla/menuv3.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(); @@ -77,9 +83,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 +99,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