Change to allow scripts to find OPAC templates in their new location

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2007-11-13 16:20:36 -06:00 committed by Joshua Ferraro
parent 38e438039b
commit 79fe8faaee
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,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/".($interface eq 'intranet'?"modules":"")."/$tmplbase",
filename => "$htdocs/$theme/$lang/modules/$tmplbase",
die_on_bad_params => 1,
global_vars => 1,
case_sensitive => 1,