View | Details | Raw Unified | Return to bug 38723
Collapse All | Expand All

(-)a/C4/Letters.pm (+1 lines)
Lines 1737-1742 sub _process_tt { Link Here
1737
            EVAL_PERL    => 1,
1737
            EVAL_PERL    => 1,
1738
            ABSOLUTE     => 1,
1738
            ABSOLUTE     => 1,
1739
            PLUGIN_BASE  => 'Koha::Template::Plugin',
1739
            PLUGIN_BASE  => 'Koha::Template::Plugin',
1740
            LOAD_PLUGINS => [ 'Koha', 'Asset', 'raw' ],
1740
            COMPILE_EXT  => $use_template_cache ? '.ttc' : '',
1741
            COMPILE_EXT  => $use_template_cache ? '.ttc' : '',
1741
            COMPILE_DIR  => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
1742
            COMPILE_DIR  => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
1742
            INCLUDE_PATH => \@includes,
1743
            INCLUDE_PATH => \@includes,
(-)a/C4/Templates.pm (-6 / +8 lines)
Lines 71-84 sub new { Link Here
71
    # Do not use template cache if script is called from commandline
71
    # Do not use template cache if script is called from commandline
72
    my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE};
72
    my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE};
73
    my $template = Template->new(
73
    my $template = Template->new(
74
        {   EVAL_PERL    => 1,
74
        {
75
            EVAL_PERL    => 1,
75
            ABSOLUTE     => 1,
76
            ABSOLUTE     => 1,
76
            PLUGIN_BASE => 'Koha::Template::Plugin',
77
            PLUGIN_BASE  => 'Koha::Template::Plugin',
77
            COMPILE_EXT => $use_template_cache ? '.ttc' : '',
78
            LOAD_PLUGINS => [ 'Koha', 'Asset', 'raw' ],
78
            COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
79
            COMPILE_EXT  => $use_template_cache ? '.ttc'                                    : '',
80
            COMPILE_DIR  => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
79
            INCLUDE_PATH => \@includes,
81
            INCLUDE_PATH => \@includes,
80
            FILTERS => {},
82
            FILTERS      => {},
81
            ENCODING => 'UTF-8',
83
            ENCODING     => 'UTF-8',
82
        }
84
        }
83
    ) or die Template->error();
85
    ) or die Template->error();
84
    my $self = {
86
    my $self = {
(-)a/Koha/TemplateUtils.pm (-7 / +8 lines)
Lines 61-73 sub process_tt { Link Here
61
61
62
        my $tt = Template->new(
62
        my $tt = Template->new(
63
            {
63
            {
64
                EVAL_PERL   => 1,
64
                EVAL_PERL    => 1,
65
                ABSOLUTE    => 1,
65
                ABSOLUTE     => 1,
66
                PLUGIN_BASE => 'Koha::Template::Plugin',
66
                PLUGIN_BASE  => 'Koha::Template::Plugin',
67
                COMPILE_EXT => $use_template_cache ? '.ttc'                                    : '',
67
                LOAD_PLUGINS => [ 'Koha', 'Asset', 'raw' ],
68
                COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
68
                COMPILE_EXT  => $use_template_cache ? '.ttc'                                    : '',
69
                FILTERS     => {},
69
                COMPILE_DIR  => $use_template_cache ? C4::Context->config('template_cache_dir') : '',
70
                ENCODING    => 'UTF-8',
70
                FILTERS      => {},
71
                ENCODING     => 'UTF-8',
71
            }
72
            }
72
        ) or die Template->error();
73
        ) or die Template->error();
73
74
(-)a/xt/author/valid-templates.t (-1 / +1 lines)
Lines 127-132 sub create_template_test { Link Here
127
                ABSOLUTE     => 1,
127
                ABSOLUTE     => 1,
128
                INCLUDE_PATH => $includes,
128
                INCLUDE_PATH => $includes,
129
                PLUGIN_BASE  => 'Koha::Template::Plugin',
129
                PLUGIN_BASE  => 'Koha::Template::Plugin',
130
                LOAD_PLUGINS => [ 'Koha', 'Asset', 'raw' ],
130
            }
131
            }
131
        );
132
        );
132
        foreach my $exclusion (@exclusions) {
133
        foreach my $exclusion (@exclusions) {
133
- 

Return to bug 38723