From 65df2ecc07d76c4714a5548ab6140852bc3abf07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 3 Nov 2009 11:32:55 +0100 Subject: [PATCH] Einige strict Probleme mit vclimit=0 --- SL/Menu.pm | 54 +++++++++++++++++++++++++---------------------- bin/mozilla/ap.pl | 2 +- bin/mozilla/ar.pl | 2 +- bin/mozilla/bp.pl | 2 +- bin/mozilla/oe.pl | 2 +- 5 files changed, 33 insertions(+), 29 deletions(-) diff --git a/SL/Menu.pm b/SL/Menu.pm index 9fcf15374..b9ee83da0 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -63,46 +63,50 @@ sub menuitem { my ($self, $myconfig, $form, $item) = @_; - my $module = $form->{script}; - my $action = "section_menu"; - my $target = ""; + my $module = $self->{$item}{module} || $form->{script}; + my $action = $self->{$item}{action} || "section_menu"; + my $target = $self->{$item}{target} || ""; - if ($self->{$item}{module}) { - $module = $self->{$item}{module}; - } - if ($self->{$item}{action}) { - $action = $self->{$item}{action}; - } - if ($self->{$item}{target}) { - $target = $self->{$item}{target}; - } + my $level = $form->escape($item); - my $level = $form->escape($item); + my $style = 'style="vertical-align:top"'; + my $target_token = ($target) + ? "target='$target'" + : ''; - my $str = qq|{$item}{href}|; +# @vars = qw(module target href); +# } map { delete $self->{$item}{$_} } @vars; # add other params foreach my $key (keys %{ $self->{$item} }) { - $str .= "&" . $form->escape($key, 1) . "="; + $href .= "&" . $form->escape($key, 1) . "="; my ($value, $conf) = split(/=/, $self->{$item}{$key}, 2); $value = $myconfig->{$value} . "/$conf" if ($conf); - $str .= $form->escape($value, 1); + $href .= $form->escape($value, 1); } - if ($target) { - $str .= qq| target=$target|; - } +# $str .= q|'|; +# +# if ($target) { +# $str .= qq| target=$target|; +# } - $str .= ">"; +# $str .= ">"; + + my $str = ""; $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 97f2dbad9..8f643e57e 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -1213,7 +1213,7 @@ sub search { $form->all_vc(\%myconfig, "vendor", "AP"); my $vendor; - if (@{ $form->{all_vendor} }) { + if (@{ $form->{all_vendor} || [] }) { map { $vendor .= "