From: Sven Schöling Date: Fri, 23 Oct 2009 08:46:49 +0000 (+0200) Subject: menunew strict X-Git-Tag: release-2.6.1beta1~174 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=647be62f8bbcf0e29f6ed29636a5c181e673d27a;p=kivitendo-erp.git menunew strict --- diff --git a/bin/mozilla/menunew.pl b/bin/mozilla/menunew.pl index 777c38c8a..793cec24e 100644 --- a/bin/mozilla/menunew.pl +++ b/bin/mozilla/menunew.pl @@ -38,11 +38,17 @@ use URI; use SL::Menu; +use strict; + +my $locale; + 1; # end of main sub display { + my $form = $main::form; + $form->header(); # $form->{force_ul_width} = $ENV{HTTP_USER_AGENT} =~ m/MSIE\s+6\./; @@ -59,6 +65,8 @@ sub display { } sub clock_line { + my $form = $main::form; + my ($Sekunden, $Minuten, $Stunden, $Monatstag, $Monat, $Jahr, $Wochentag, $Jahrestag, $Sommerzeit) = localtime(time); @@ -81,13 +89,15 @@ sub clock_line { } sub acc_menu { + my $form = $main::form; + my %myconfig = %main::myconfig; $locale = Locale->new($myconfig{countrycode}, "menu"); my $mainlevel = $form->{level}; $mainlevel =~ s/\Q$mainlevel\E--//g; my $menu = Menu->new('menu.ini'); - $AUTOFLUSH = 1; + $English::AUTOFLUSH = 1; my $all_items = []; create_menu($menu, $all_items); @@ -112,6 +122,9 @@ sub create_menu { my ($menu, $all_items, $parent, $depth) = @_; my $html; + my $form = $main::form; + my %myconfig = %main::myconfig; + die if ($depth * 1 > 5); my @menuorder = $menu->access_control(\%myconfig, $parent);