Revision fdd40c9d
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
bin/mozilla/menu.pl | ||
---|---|---|
116 | 116 |
$menuitem->{module} ||= $::form->{script}; |
117 | 117 |
$menuitem->{action} ||= "section_menu"; |
118 | 118 |
$menuitem->{target} ||= "main_window"; |
119 |
$menuitem->{href} ||= "$item->{module}?action=$item->{action}";
|
|
119 |
$menuitem->{href} ||= "$menuitem->{module}?action=$menuitem->{action}";
|
|
120 | 120 |
|
121 | 121 |
# add other params |
122 |
foreach my $key (keys %$item) { |
|
122 |
foreach my $key (keys %$menuitem) {
|
|
123 | 123 |
next if $key =~ /target|module|action|href/; |
124 | 124 |
$menuitem->{href} .= "&" . $::form->escape($key, 1) . "="; |
125 |
my ($value, $conf) = split(/=/, $item->{$key}, 2); |
|
125 |
my ($value, $conf) = split(/=/, $menuitem->{$key}, 2);
|
|
126 | 126 |
$value = $::myconfig{$value} . "/$conf" if ($conf); |
127 |
$item->{href} .= $::form->escape($value, 1); |
|
127 |
$menuitem->{href} .= $::form->escape($value, 1);
|
|
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
my $anchor = $menuitem->{href}; |
Auch abrufbar als: Unified diff
typos