From: Sven Schöling Date: Wed, 17 Oct 2012 13:56:26 +0000 (+0200) Subject: debug enter/leave_sub balanciert X-Git-Tag: release-3.0.0beta1~187 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9218e5a1c7e997b02f2b44033980f3bd1f33f670;p=kivitendo-erp.git debug enter/leave_sub balanciert --- diff --git a/SL/Menu.pm b/SL/Menu.pm index 844e3f56f..eac4e2fe6 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -46,7 +46,10 @@ sub new { my ($type, $menufile) = @_; - return $instance if $instance; + if ($instance) { + $::lxdebug->leave_sub; + return $instance; + } my $self = {}; my $inifile = Inifile->new($menufile); diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index f6e7c7fae..afdedf998 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -53,6 +53,7 @@ sub render { my $sections = [ section_menu($menu) ]; + $::lxdebug->leave_sub; $::form->parse_html_template('menu/menu', { sections => $sections, inline => 1,