From 075f1eabc2cddbc71367a4b9746cb610ec08705f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 11 Sep 2012 17:22:52 +0200 Subject: [PATCH] Revert "Menu Instance als Singleton cachen." This reverts commit b76380d4aaab32fd83ba5cfc7e071455093192e1. Conflicts: SL/Menu.pm --- SL/Menu.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/SL/Menu.pm b/SL/Menu.pm index eac4e2fe6..3b994f2fb 100644 --- a/SL/Menu.pm +++ b/SL/Menu.pm @@ -39,18 +39,11 @@ use SL::Inifile; use strict; -my $instance; - sub new { $main::lxdebug->enter_sub(); my ($type, $menufile) = @_; - if ($instance) { - $::lxdebug->leave_sub; - return $instance; - } - my $self = {}; my $inifile = Inifile->new($menufile); @@ -62,7 +55,7 @@ sub new { $main::lxdebug->leave_sub(); - return $instance = $self; + return $self; } sub menuitem_js { -- 2.20.1