summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2005-11-20 09:00:05 +0100
committerwurblzap%gmail.com <>2005-11-20 09:00:05 +0100
commit5ad7900f7b12f1b81bdc068282b7106be8aae407 (patch)
treed6b03bfb1937aedfbe89020b2e025b3f379621aa /Bugzilla
parent8b18b7e15dd23f7829c47376f33be613ca7bc977 (diff)
downloadbugzilla-5ad7900f7b12f1b81bdc068282b7106be8aae407.tar.gz
bugzilla-5ad7900f7b12f1b81bdc068282b7106be8aae407.tar.xz
Bug 304417: Template precompilation is clumsy when it comes to additional language directories.
Patch by Jochen Wiedmann <jochen.wiedmann@gmail.com>, r=wurblzap, a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 758a829af..c47610b1c 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -284,6 +284,13 @@ $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...