From aeb8fb1abfcdd234fc2d99c0aa9dd85508d29427 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 22 Feb 2012 12:56:53 +0100 Subject: [PATCH] =?utf8?q?Javascripmen=C3=BC:=20Nur=20Icons=20ausliefern,?= =?utf8?q?=20die=20auch=20da=20sind.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Vermeidet exzessive 404 Fehler --- bin/mozilla/menunew.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/menunew.pl b/bin/mozilla/menunew.pl index 751164e6c..a1f9a8f2d 100644 --- a/bin/mozilla/menunew.pl +++ b/bin/mozilla/menunew.pl @@ -152,6 +152,9 @@ sub _icon_path { $size ||= 16; - return "image/icons/${size}x${size}/$label"; + my $img = "image/icons/${size}x${size}/$label"; + + return unless -f $img; + return $img; } -- 2.20.1