diff --git a/C4/Templates.pm b/C4/Templates.pm index 7456c7f625..e787ab13c3 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -302,6 +302,10 @@ sub themelanguage { return ( $theme, 'en', uniq( \@themes ) ); } } + # tmpl is a full path, so this is a template for a plugin + if ( $tmpl =~ /^\// && -e $tmpl ) { + return ( $themes[0], $lang, uniq( \@themes ) ); + } }