From 85bb266ec52df7baa3da77cab961eb7fcc18d330 Mon Sep 17 00:00:00 2001 From: "bbaetz%acm.org" <> Date: Fri, 7 Feb 2003 15:19:01 +0000 Subject: Bug 191863 - Clean up Bugzilla.pm r=gerv, justdave a=justdave --- Bugzilla/Template/Plugin/Bugzilla.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Template/Plugin/Bugzilla.pm') 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; -- cgit v1.2.3-24-g4f1b