summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-11-22 08:31:58 +0100
committerlpsolit%gmail.com <>2005-11-22 08:31:58 +0100
commit1ec20babb683eb7fd7c0768bf3e616aac277a4a3 (patch)
tree915c7f936de367a4fdbae20a6c32ecf9e622773e /Bugzilla
parent16b3aa28d839fa105a6690d40b5b7a05b88ec8fc (diff)
downloadbugzilla-1ec20babb683eb7fd7c0768bf3e616aac277a4a3.tar.gz
bugzilla-1ec20babb683eb7fd7c0768bf3e616aac277a4a3.tar.xz
Fix incorrect checkin of bug 304471 - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index c47610b1c..04a4db204 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -284,19 +284,20 @@ $Template::Stash::SCALAR_OPS->{ truncate } =
###############################################################################
# Construct the Template object
- my %opts = @_;
- if ($opts{'clean_cache'}) {
- # checksetup.pl will call us once for any template/lang directory.
- # We need a possibility to reset the cache, so that no files from
- # the previous language pollute the action.
- $template_include_path = undef;
- }
# Note that all of the failure cases here can't use templateable errors,
# since we won't have a template to use...
sub create {
my $class = shift;
+ my %opts = @_;
+
+ # checksetup.pl will call us once for any template/lang directory.
+ # We need a possibility to reset the cache, so that no files from
+ # the previous language pollute the action.
+ if ($opts{'clean_cache'}) {
+ $template_include_path = undef;
+ }
# IMPORTANT - If you make any configuration changes here, make sure to
# make them in t/004.template.t and checksetup.pl.