projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 5549 Followup: fix suspension in days
[koha_gimpoz]
/
C4
/
Templates.pm
diff --git
a/C4/Templates.pm
b/C4/Templates.pm
index
d150a16
..
0741040
100644
(file)
--- a/
C4/Templates.pm
+++ b/
C4/Templates.pm
@@
-53,12
+53,13
@@
sub new {
else {
$htdocs = C4::Context->config('intrahtdocs');
}
else {
$htdocs = C4::Context->config('intrahtdocs');
}
-
my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query);
my $template = Template->new(
{ EVAL_PERL => 1,
ABSOLUTE => 1,
my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query);
my $template = Template->new(
{ EVAL_PERL => 1,
ABSOLUTE => 1,
- PLUGIN_BASE => 'Koha::Template::Plugin',
+ PLUGIN_BASE => 'Koha::Template::Plugin',
+ COMPILE_EXT => C4::Context->config('template_cache_dir')?'.ttc':'',
+ COMPILE_DIR => C4::Context->config('template_cache_dir')?C4::Context->config('template_cache_dir'):'',,
INCLUDE_PATH => [
"$htdocs/$theme/$lang/includes",
"$htdocs/$theme/en/includes"
INCLUDE_PATH => [
"$htdocs/$theme/$lang/includes",
"$htdocs/$theme/en/includes"