From 5ad7900f7b12f1b81bdc068282b7106be8aae407 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Sun, 20 Nov 2005 08:00:05 +0000 Subject: Bug 304417: Template precompilation is clumsy when it comes to additional language directories. Patch by Jochen Wiedmann , r=wurblzap, a=myk --- Bugzilla/Template.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/Template.pm') 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... -- cgit v1.2.3-24-g4f1b