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

(-)a/C4/Templates.pm (-1 / +5 lines)
Lines 61-66 sub new { Link Here
61
        push @includes, "$htdocs/$_/$lang/includes";
61
        push @includes, "$htdocs/$_/$lang/includes";
62
        push @includes, "$htdocs/$_/en/includes" unless $lang eq 'en';
62
        push @includes, "$htdocs/$_/en/includes" unless $lang eq 'en';
63
    }
63
    }
64
65
    my @plugins_include_paths = Koha::Plugins->call( 'template_include_paths',
66
        { interface => $interface, lang => $lang } );
67
    push @includes, map { $_ ? @$_ : () } @plugins_include_paths;
68
64
    # Do not use template cache if script is called from commandline
69
    # Do not use template cache if script is called from commandline
65
    my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE};
70
    my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE};
66
    my $template = Template->new(
71
    my $template = Template->new(
67
- 

Return to bug 35070