diff options
author | mkanat%bugzilla.org <> | 2006-09-19 03:56:38 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-09-19 03:56:38 +0200 |
commit | fef6f78c2c8b9441dfd268257d40691ec79ef9a1 (patch) | |
tree | 897795c8eac444026eeff03a1eb62d79447297ed /Bugzilla.pm | |
parent | 5750cad16151bf7ad028f7dc79a8ab39b2f9a07a (diff) | |
download | bugzilla-fef6f78c2c8b9441dfd268257d40691ec79ef9a1.tar.gz bugzilla-fef6f78c2c8b9441dfd268257d40691ec79ef9a1.tar.xz |
Bug 223880: "marked a duplicate" messages cannot be localized
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 11 |
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 |