From db7407c4a2d300d3ec2ccf270f6c32f42d342824 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Fri, 23 Nov 2007 19:26:06 +0100 Subject: [PATCH] Deal with opac template reordering 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 --- C4/Output.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Output.pm b/C4/Output.pm index a9bb3f699d..aed50ec233 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -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; -- 2.20.1