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 <crc@liblime.com>
This commit is contained in:
Paul POULAIN 2007-09-03 14:48:48 +02:00 committed by Chris Cormack
parent 323bf9cc46
commit c85892117e
1 changed files with 1 additions and 1 deletions

View File

@ -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,