Commit 1ec20bab authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Fix incorrect checkin of bug 304471 - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=LpSolit

parent 16b3aa28
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment