From: Sven Schöling Date: Wed, 24 Jun 2015 14:10:43 +0000 (+0200) Subject: Layout: Icons in Javascript Menü gefixt X-Git-Tag: release-3.3.0beta~31^2~29 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=31d8e1a0595f93c21808f8e43057621635dca311;p=kivitendo-erp.git Layout: Icons in Javascript Menü gefixt --- diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index 5ddb4d7fb..26539de1c 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -103,7 +103,7 @@ sub create_menu { if ($menu_item->{submenu} || (!defined($menu_item->{module}) && !defined($menu_item->{href}))) { $item->{subitems} = []; - $item->{image} = _icon_path("$name.png"); + $item->{image} = _icon_path($menu_item->{ICON}); $self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1); } else { @@ -118,7 +118,7 @@ sub _icon_path { $size ||= 16; - my $img = "image/icons/${size}x${size}/$label"; + my $img = "image/icons/${size}x${size}/$label.png"; return unless -f $img; return $img;