X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FTemplates.pm;h=074104049248827ec51f7e72a8fe424820cbe795;hb=a334fec190f5efcda731d5ea6b0d72d16ef594b9;hp=7585727550892c9c8a1b9c869d63658e22f696ad;hpb=a1ec82845372cd888021220f056d465e9e65f4f2;p=koha_gimpoz diff --git a/C4/Templates.pm b/C4/Templates.pm index 7585727550..0741040492 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -53,11 +53,13 @@ sub new { else { $htdocs = C4::Context->config('intrahtdocs'); } - my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query); my $template = Template->new( { EVAL_PERL => 1, ABSOLUTE => 1, + 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"