From 763f613b0c3895c68462c1f2f60ab4355dfb2625 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 4 Sep 2007 11:33:00 +0200 Subject: [PATCH] determining language for OPAC correctly, until new template structure has been ported to OPAC Signed-off-by: Chris Cormack --- C4/Output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index 2518881b94..d809c3bee0 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -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/modules/$tmpl" ) { + if ( -e "$htdocs/$th/$la/".($section eq 'intranet'?"modules":"")."/$tmpl" ) { $theme = $th; $lang = $la; last THEME; -- 2.39.2