From 31d8e1a0595f93c21808f8e43057621635dca311 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 24 Jun 2015 16:10:43 +0200 Subject: [PATCH] =?utf8?q?Layout:=20Icons=20in=20Javascript=20Men=C3=BC=20?= =?utf8?q?gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/Javascript.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1