From b886be01c594bbecba4c165959690a61ad3244b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 22 Oct 2012 12:42:30 +0200 Subject: [PATCH] action=menu.pl macht keinen Sinn mehr. submenu ist der korrekte Check. --- SL/Layout/Css.pm | 3 +-- SL/Layout/Javascript.pm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SL/Layout/Css.pm b/SL/Layout/Css.pm index 2bb0455ca..883353a20 100644 --- a/SL/Layout/Css.pm +++ b/SL/Layout/Css.pm @@ -51,8 +51,7 @@ sub print_menu { my $menu_title = $::locale->text($item); my $menu_text = $menu_title; - if ($menu_item->{"submenu"} || !defined($menu_item->{"module"}) || - ($menu_item->{"module"} eq "menu.pl")) { + if ($menu_item->{"submenu"} || !defined($menu_item->{"module"})) { my $h = $self->print_menu("${parent}${item}", $depth * 1 + 1)."\n"; if (!$parent) { diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index d8f079fcf..6e6d6553d 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -114,7 +114,7 @@ sub create_menu { my $item = { 'title' => $::locale->text($name) }; push @{ $all_items }, $item; - if ($menu_item->{submenu} || !defined($menu_item->{module}) || ($menu_item->{module} eq "menu.pl")) { + if ($menu_item->{submenu} || !defined($menu_item->{module})) { $item->{subitems} = []; $item->{image} = _icon_path("$name.png"); $self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1); -- 2.20.1