From c85892117e80370efd1fdad9cde85488ec939d2a Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Mon, 3 Sep 2007 14:48:48 +0200 Subject: [PATCH] determining theme/language path until the modules/structure has been ported to OPAC, this quick hack make the theme/language determination work for both OPAC & intranet 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 5e39eccff6..2518881b94 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -82,7 +82,7 @@ sub gettemplate { my ( $theme, $lang ) = themelanguage( $htdocs, $tmplbase, $interface, $query ); my $opacstylesheet = C4::Context->preference('opacstylesheet'); my $template = HTML::Template::Pro->new( - filename => "$htdocs/$theme/$lang/modules/$tmplbase", + filename => "$htdocs/$theme/$lang/".($interface eq 'intranet'?"modules":"")."/$tmplbase", die_on_bad_params => 1, global_vars => 1, case_sensitive => 1, -- 2.39.2