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

(-)a/C4/Templates.pm (-3 / +2 lines)
Lines 188-195 sub badtemplatecheck { Link Here
188
        Koha::Exceptions::NoPermission->throw( 'bad template path' );
188
        Koha::Exceptions::NoPermission->throw( 'bad template path' );
189
    } else {
189
    } else {
190
        # Check allowed dirs
190
        # Check allowed dirs
191
        my $dirs = C4::Context->config("pluginsdir");
191
        my $cdirs = C4::Context->config("pluginsdir");
192
        $dirs = [ $dirs ] if !ref($dirs);
192
        my $dirs = [!ref($cdirs)?$cdirs:@$cdirs];
193
        unshift @$dirs, C4::Context->config('opachtdocs'), C4::Context->config('intrahtdocs');
193
        unshift @$dirs, C4::Context->config('opachtdocs'), C4::Context->config('intrahtdocs');
194
        my $found = 0;
194
        my $found = 0;
195
        foreach my $dir ( @$dirs ) {
195
        foreach my $dir ( @$dirs ) {
196
- 

Return to bug 28143