]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix incorrect checkin of bug 304471 - Patch by Teemu Mannermaa <wicked@etlicon.fi...
authorlpsolit%gmail.com <>
Tue, 22 Nov 2005 07:31:58 +0000 (07:31 +0000)
committerlpsolit%gmail.com <>
Tue, 22 Nov 2005 07:31:58 +0000 (07:31 +0000)
Bugzilla/Template.pm

index c47610b1c8a9d9831626d82919cea1df0ebfd590..04a4db20478b43b0d3a17f69ad17c140c2d42c5d 100644 (file)
@@ -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.