projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MenuItem Skelett
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
T8.pm
diff --git
a/SL/Template/Plugin/T8.pm
b/SL/Template/Plugin/T8.pm
index
6c584d7
..
aff4401
100644
(file)
--- a/
SL/Template/Plugin/T8.pm
+++ b/
SL/Template/Plugin/T8.pm
@@
-1,14
+1,19
@@
package SL::Template::Plugin::T8;
use strict;
package SL::Template::Plugin::T8;
use strict;
+use parent qw( Template::Plugin::Filter );
-use Template::Plugin::Filter;
-use base qw( Template::Plugin::Filter );
+my $cached_instance;
+
+sub new {
+ my $class = shift;
+
+ return $cached_instance ||= $class->SUPER::new(@_);
+}
sub init {
my $self = shift;
sub init {
my $self = shift;
- # first arg can specify filter name
$self->install_filter($self->{ _ARGS }->[0] || 'T8');
return $self;
$self->install_filter($self->{ _ARGS }->[0] || 'T8');
return $self;