Deal with opac template reordering
authorPaul POULAIN <paul@koha-fr.org>
Fri, 23 Nov 2007 18:26:06 +0000 (19:26 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 25 Nov 2007 23:07:00 +0000 (17:07 -0600)
the modules/ directory is now in opac as well as in intranet.
non english languages were unreachable without this patch.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Output.pm

index a9bb3f6..aed50ec 100644 (file)
@@ -143,7 +143,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/".($section eq 'intranet'?"modules":"")."/$tmpl" ) {
+                if ( -e "$htdocs/$th/$la/modules/$tmpl" ) {
                     $theme = $th;
                     $lang  = $la;
                     last THEME;