correctly caluclate default template path for OPAC

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2008-01-21 03:16:03 -06:00 committed by Joshua Ferraro
parent d02d53e85a
commit eee09f39da
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ sub gettemplate {
my $filename = "$htdocs/$theme/$lang/modules/$tmplbase";
unless (-f $filename) {
$lang = 'en';
$filename = "$htdocs/$theme/$lang/".($interface eq 'intranet'?"modules":"")."/$tmplbase";
$filename = "$htdocs/$theme/$lang/modules/$tmplbase";
}
my $template = HTML::Template::Pro->new(
filename => $filename,