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

(-)a/C4/Templates.pm (-3 / +3 lines)
Lines 53-64 sub new { Link Here
53
    else {
53
    else {
54
        $htdocs = C4::Context->config('intrahtdocs');
54
        $htdocs = C4::Context->config('intrahtdocs');
55
    }
55
    }
56
57
    my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query);
56
    my ($theme, $lang)= themelanguage( $htdocs, $tmplbase, $interface, $query);
58
    my $template = Template->new(
57
    my $template = Template->new(
59
        {   EVAL_PERL    => 1,
58
        {   EVAL_PERL    => 1,
60
            ABSOLUTE     => 1,
59
            ABSOLUTE     => 1,
61
	    PLUGIN_BASE => 'Koha::Template::Plugin',
60
            PLUGIN_BASE => 'Koha::Template::Plugin',
61
            COMPILE_EXT => C4::Context->config('template_cache_dir')?'.ttc':'',
62
            COMPILE_DIR => C4::Context->config('template_cache_dir')?C4::Context->config('template_cache_dir'):'',,
62
            INCLUDE_PATH => [
63
            INCLUDE_PATH => [
63
                "$htdocs/$theme/$lang/includes",
64
                "$htdocs/$theme/$lang/includes",
64
                "$htdocs/$theme/en/includes"
65
                "$htdocs/$theme/en/includes"
65
- 

Return to bug 7511