Partial fix for Bug 1578: detect material type and don't load COinS unless the materi...
[koha_fer] / C4 / Output.pm
index 190cc41..d9714a5 100644 (file)
@@ -162,7 +162,7 @@ sub themelanguage {
             #for ( my $pass = 1 ; $pass <= 2 ; $pass += 1 ) {
                 # warn "$htdocs/$th/$la/modules/$interface-"."tmpl";
                 #$la =~ s/([-_])/ $1 eq '-'? '_': '-' /eg if $pass == 2;
-                if ( -e "$htdocs/$th/$la/modules/$interface-"."tmpl") {
+                               if ( -e "$htdocs/$th/$la/modules/$tmpl") {
                 #".($interface eq 'intranet'?"modules":"")."/$tmpl" ) {
                     $theme = $th;
                     $lang  = $la;