projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a00762
)
Menu Instance als Singleton cachen.
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 11 Sep 2012 08:42:29 +0000
(10:42 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 17 Oct 2012 13:56:03 +0000
(15:56 +0200)
SL/Menu.pm
patch
|
blob
|
history
diff --git
a/SL/Menu.pm
b/SL/Menu.pm
index
3b994f2
..
844e3f5
100644
(file)
--- a/
SL/Menu.pm
+++ b/
SL/Menu.pm
@@
-39,11
+39,15
@@
use SL::Inifile;
use strict;
+my $instance;
+
sub new {
$main::lxdebug->enter_sub();
my ($type, $menufile) = @_;
+ return $instance if $instance;
+
my $self = {};
my $inifile = Inifile->new($menufile);
@@
-55,7
+59,7
@@
sub new {
$main::lxdebug->leave_sub();
- return $self;
+ return $
instance = $
self;
}
sub menuitem_js {