From 492189e2b9dc5bec00292e9e9cc2647d3b3b3e07 Mon Sep 17 00:00:00 2001 From: Sven Donath Date: Tue, 28 Sep 2010 17:40:24 +0200 Subject: [PATCH] =?utf8?q?HTML-Men=C3=BC,=20interne=20Logik=20verbessert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/menu.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index b119d7a59..ae2d6b746 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -118,8 +118,7 @@ sub section_menu { my $form = $main::form; my %myconfig = %main::myconfig; my $locale = $main::locale; - my $is_links_browser = 1; - if ( _calc_framesize() eq 240) { $is_links_browser = 0; } + my $is_not_links_browser = $ENV{HTTP_USER_AGENT} =~ /links/i ? 0 : 1; my $zeige; @@ -204,13 +203,13 @@ sub section_menu { qq|$spacer| . $menu->menuitem(\%myconfig, \%$form, $item, $level) ; - if (-f "image/icons/16x16/$label_icon" && ($is_links_browser)) + if (-f "image/icons/16x16/$label_icon" && ($is_not_links_browser)) { print qq|  | } else { - if ($is_links_browser) { + if ($is_not_links_browser) { print qq||; } } @@ -237,7 +236,7 @@ sub section_menu { print qq| |; - if ($is_links_browser) { + if ($is_not_links_browser) { print qq||; } print qq| $label    \n|; -- 2.20.1