diff --git a/C4/Letters.pm b/C4/Letters.pm index b7c6b0cedd..87c71d16d1 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1810,8 +1810,8 @@ sub _process_tt { my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE}; my $template = Template->new( { - EVAL_PERL => 1, - ABSOLUTE => 1, + EVAL_PERL => 0, + ABSOLUTE => 0, PLUGIN_BASE => 'Koha::Template::Plugin', COMPILE_EXT => $use_template_cache ? '.ttc' : '', COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '', diff --git a/Koha/TemplateUtils.pm b/Koha/TemplateUtils.pm index aafbaaa6bd..3d2b198f31 100644 --- a/Koha/TemplateUtils.pm +++ b/Koha/TemplateUtils.pm @@ -61,8 +61,8 @@ sub process_tt { my $tt = Template->new( { - EVAL_PERL => 1, - ABSOLUTE => 1, + EVAL_PERL => 0, + ABSOLUTE => 0, PLUGIN_BASE => 'Koha::Template::Plugin', COMPILE_EXT => $use_template_cache ? '.ttc' : '', COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '',