From 647be62f8bbcf0e29f6ed29636a5c181e673d27a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 23 Oct 2009 10:46:49 +0200 Subject: [PATCH] menunew strict --- bin/mozilla/menunew.pl | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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); -- 2.20.1