Revision 8660390c
Von Moritz Bunkus vor fast 12 Jahren hinzugefügt
SL/Layout/V3.pm | ||
---|---|---|
87 | 87 |
$action = $menuitem->{action}; |
88 | 88 |
} |
89 | 89 |
|
90 |
my $level = $::form->escape($item); |
|
90 |
my $level = $::form->escape($item);
|
|
91 | 91 |
|
92 |
my $str = qq|<a href="$module?action=| . $::form->escape($action) . qq|&level=| . $::form->escape($level);
|
|
93 |
|
|
94 |
my @vars = qw(module action target href);
|
|
92 |
my @vars;
|
|
93 |
my $target = $menuitem->{target} ? qq| target="| . $::form->escape($menuitem->{target}) . '"' : ''; |
|
94 |
my $str = qq|<a${target} href="|;
|
|
95 | 95 |
|
96 | 96 |
if ($menuitem->{href}) { |
97 |
$str = qq|<a href="$menuitem->{href}|;
|
|
98 |
@vars = qw(module target href);
|
|
97 |
$main::lxdebug->leave_sub();
|
|
98 |
return $str . $menuitem->{href} . '">';
|
|
99 | 99 |
} |
100 | 100 |
|
101 |
map { delete $menuitem->{$_} } @vars; |
|
101 |
$str .= qq|$module?action=| . $::form->escape($action) . qq|&level=| . $::form->escape($level); |
|
102 |
|
|
103 |
map { delete $menuitem->{$_} } qw(module action target href); |
|
102 | 104 |
|
103 | 105 |
# add other params |
104 | 106 |
foreach my $key (keys %{ $menuitem }) { |
Auch abrufbar als: Unified diff
Menüs: "target=..." wieder unterstützt