Lines 70-75
sub new {
Link Here
|
70 |
|
70 |
|
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 |
use Koha::Template::Plugin::raw; |
73 |
my $template = Template->new( |
74 |
my $template = Template->new( |
74 |
{ EVAL_PERL => 1, |
75 |
{ EVAL_PERL => 1, |
75 |
ABSOLUTE => 1, |
76 |
ABSOLUTE => 1, |
Lines 77-82
sub new {
Link Here
|
77 |
COMPILE_EXT => $use_template_cache ? '.ttc' : '', |
78 |
COMPILE_EXT => $use_template_cache ? '.ttc' : '', |
78 |
COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '', |
79 |
COMPILE_DIR => $use_template_cache ? C4::Context->config('template_cache_dir') : '', |
79 |
INCLUDE_PATH => \@includes, |
80 |
INCLUDE_PATH => \@includes, |
|
|
81 |
LOAD_FILTERS => [ |
82 |
'Koha::Template::Plugin::raw', |
83 |
], |
80 |
FILTERS => {}, |
84 |
FILTERS => {}, |
81 |
ENCODING => 'UTF-8', |
85 |
ENCODING => 'UTF-8', |
82 |
} |
86 |
} |