summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-02-07 16:19:01 +0100
committerbbaetz%acm.org <>2003-02-07 16:19:01 +0100
commit85bb266ec52df7baa3da77cab961eb7fcc18d330 (patch)
treef627b684b83ad91129b9bb7f7180b8c126e9d004 /Bugzilla/Template
parent7407cb3069182253ff4218450237bec5726f21d2 (diff)
downloadbugzilla-85bb266ec52df7baa3da77cab961eb7fcc18d330.tar.gz
bugzilla-85bb266ec52df7baa3da77cab961eb7fcc18d330.tar.xz
Bug 191863 - Clean up Bugzilla.pm
r=gerv, justdave a=justdave
Diffstat (limited to 'Bugzilla/Template')
-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;