]> git.donarmstrong.com Git - debbugs.git/blobdiff - lib/Debbugs/Text.pm
the cache directory should always be a temp dir
[debbugs.git] / lib / Debbugs / Text.pm
index 53ecf04c47fb60019ec09445355e07700eec46cc..1213ab71b2dd76bf0ef0c415184b809ddc2410db 100644 (file)
@@ -181,8 +181,7 @@ sub fill_in_template{
        ) {
         $tt_templates{$output_type}{$language} =
             Text::Xslate->new(# cache in template_cache or temp directory
-                              cache_dir => $config{template_cache} //
-                              File::Temp::tempdir(CLEANUP => 1),
+                              cache_dir => File::Temp::tempdir(CLEANUP => 1),
                               # default to the language, but fallback to en_US
                               path => [$config{template_dir}.'/'.$language.'/',
                                        $config{template_dir}.'/en_US/',