From: Sven Schöling Date: Wed, 29 Aug 2012 18:24:44 +0000 (+0200) Subject: weg mit menuitem in Menu.pm X-Git-Tag: release-3.0.0beta1~218 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5cdb20edf33f6e6cf5151b3d56e0b614222bf097;p=kivitendo-erp.git weg mit menuitem in Menu.pm --- diff --git a/SL/Menu.pm b/SL/Menu.pm index debceae88..63a4f868e 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -70,37 +70,6 @@ sub menuitems { } $self->access_control; } -sub menuitem { - $main::lxdebug->enter_sub(); - - my ($self, $myconfig, $form, $item) = @_; - - my $module = $self->{$item}{module} || $form->{script}; - my $action = $self->{$item}{action} || "section_menu"; - my $target = $self->{$item}{target} || ""; - my $level = $form->escape($item); - my $target_token = ($target) ? "target='$target'" : ''; - - my $href = ($self->{$item}{href}) - ? $form->escape($self->{$item}{href}) - : "$module?action=$action"; - - # add other params - foreach my $key (keys %{ $self->{$item} }) { - next if $key =~ /target|module|action/; - $href .= "&" . $form->escape($key, 1) . "="; - my ($value, $conf) = split(/=/, $self->{$item}{$key}, 2); - $value = $myconfig->{$value} . "/$conf" if ($conf); - $href .= $form->escape($value, 1); - } - - my $str = ""; - - $main::lxdebug->leave_sub(); - - return $str; -} - sub menuitem_js { my ($self, $myconfig, $form, $item) = @_;