BUGFIX : get available language and theme
authorPaul POULAIN <paul@koha-fr.org>
Mon, 3 Sep 2007 08:20:39 +0000 (10:20 +0200)
committerChris Cormack <crc@liblime.com>
Mon, 3 Sep 2007 08:37:36 +0000 (03:37 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
C4/Output.pm

index d2a2899..5e39ecc 100644 (file)
@@ -144,7 +144,7 @@ sub themelanguage {
         foreach my $la (@languages) {
             for ( my $pass = 1 ; $pass <= 2 ; $pass += 1 ) {
                 $la =~ s/([-_])/ $1 eq '-'? '_': '-' /eg if $pass == 2;
-                if ( -e "$htdocs/$th/$la/$tmpl" ) {
+                if ( -e "$htdocs/$th/$la/modules/$tmpl" ) {
                     $theme = $th;
                     $lang  = $la;
                     last THEME;