X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/56f7991d4910ae12c7d16aab025a2ab242ca5eeb..e214accccd89a9c8:/SL/Layout/MenuLeft.pm?ds=sidebyside diff --git a/SL/Layout/MenuLeft.pm b/SL/Layout/MenuLeft.pm index d740640c6..f2e8a053f 100644 --- a/SL/Layout/MenuLeft.pm +++ b/SL/Layout/MenuLeft.pm @@ -15,7 +15,7 @@ sub javascripts_inline { my $self = shift; $self->SUPER::javascripts_inline; my $sections = [ section_menu($self->menu) ]; - $self->render('menu/menu', { output => 0 }, + $self->presenter->render('menu/menu', sections => $sections, ) } @@ -51,7 +51,7 @@ sub section_menu { my $menuitem = $menu->{$item}; my $olabel = apply { s/.*--// } $item; my $ml = apply { s/--.*// } $item; - my $icon_class = apply { y/ /-/ } $item; + my $icon_class = apply { $_ =lc $_; s/[^a-z0-9_-]/-/g } $item; my $spacer = "s" . (0 + $item =~ s/--/--/g); next if $level && $item ne "$level--$olabel";