From eb3549d7f634c404b635ef67b32696b355f66efb Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 7 Nov 2012 15:38:38 +0100 Subject: [PATCH] Menu::menuitem_new: nur bei Trace-Level DEBUG2 ausgeben --- SL/Menu.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Menu.pm b/SL/Menu.pm index 48ac6229d..57d8b4e8a 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -59,7 +59,7 @@ sub new { } sub menuitem_new { - $main::lxdebug->enter_sub(); + $main::lxdebug->enter_sub(LXDebug::DEBUG2()); my ($self, $name, $item) = @_; @@ -84,7 +84,7 @@ sub menuitem_new { $item->{href} .= "&" . $form->escape($key) . "=" . $form->escape($value); } - $main::lxdebug->leave_sub(); + $main::lxdebug->leave_sub(LXDebug::DEBUG2()); } sub access_control { -- 2.20.1