From: Sven Schöling Date: Wed, 21 Oct 2009 14:42:40 +0000 (+0200) Subject: menuv3 strict X-Git-Tag: release-2.6.1beta1~204 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7f8cada2276e50879226ea553006ca7c714fac6a;p=kivitendo-erp.git menuv3 strict --- 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);