summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template/Plugin/Bugzilla.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Template/Plugin/Bugzilla.pm')
-rw-r--r--Bugzilla/Template/Plugin/Bugzilla.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/Bugzilla/Template/Plugin/Bugzilla.pm b/Bugzilla/Template/Plugin/Bugzilla.pm
index 285553b7e..101bd06ee 100644
--- a/Bugzilla/Template/Plugin/Bugzilla.pm
+++ b/Bugzilla/Template/Plugin/Bugzilla.pm
@@ -31,7 +31,18 @@ use Bugzilla;
sub new {
my ($class, $context) = @_;
- return Bugzilla->instance;
+ return bless {}, $class;
+}
+
+sub AUTOLOAD {
+ my $class = shift;
+ our $AUTOLOAD;
+
+ $AUTOLOAD =~ s/^.*:://;
+
+ return if $AUTOLOAD eq 'DESTROY';
+
+ return Bugzilla->$AUTOLOAD(@_);
}
1;