summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index c4300b0b5..ef67643af 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -146,6 +146,12 @@ sub template {
return request_cache()->{template};
}
+sub template_inner {
+ my $class = shift;
+ $class->request_cache->{template_inner} ||= Bugzilla::Template->create();
+ return $class->request_cache->{template_inner};
+}
+
sub cgi {
my $class = shift;
request_cache()->{cgi} ||= new Bugzilla::CGI();
@@ -452,6 +458,11 @@ that.
The current C<Template> object, to be used for output
+=item C<template_inner>
+
+If you ever need a L<Bugzilla::Template> object while you're already
+processing a template, use this.
+
=item C<cgi>
The current C<cgi> object. Note that modules should B<not> be using this in