Revision 31d8e1a0
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Layout/Javascript.pm | ||
---|---|---|
103 | 103 |
|
104 | 104 |
if ($menu_item->{submenu} || (!defined($menu_item->{module}) && !defined($menu_item->{href}))) { |
105 | 105 |
$item->{subitems} = []; |
106 |
$item->{image} = _icon_path("$name.png");
|
|
106 |
$item->{image} = _icon_path($menu_item->{ICON});
|
|
107 | 107 |
$self->create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1); |
108 | 108 |
|
109 | 109 |
} else { |
... | ... | |
118 | 118 |
|
119 | 119 |
$size ||= 16; |
120 | 120 |
|
121 |
my $img = "image/icons/${size}x${size}/$label"; |
|
121 |
my $img = "image/icons/${size}x${size}/$label.png";
|
|
122 | 122 |
|
123 | 123 |
return unless -f $img; |
124 | 124 |
return $img; |
Auch abrufbar als: Unified diff
Layout: Icons in Javascript Menü gefixt