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

index 44e236c8e63abc01cff493be4f9730d21d7d0f7a..abbe28aa99d504df964922ece3db3d95fdd91f5b 100644 (file)
@@ -203,6 +203,14 @@ $Template::Stash::SCALAR_OPS->{ truncate } =
 
 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.
@@ -284,13 +292,6 @@ sub create {
             # Prevents line break on hyphens and whitespaces.
             no_break => sub {
                 my ($var) = @_;
-    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;
-    }
                 $var =~ s/ /\&nbsp;/g;
                 $var =~ s/-/\&#8209;/g;
                 return $var;