gettemplate() routine will assume htdocs is in $configfile{opacdir}."/htdocs"

if the opachtdocs variable isn't set in koha.conf
This commit is contained in:
tonnesen 2002-10-21 17:39:42 +00:00
parent cdec0f9436
commit 8bbd4de78d
1 changed files with 2 additions and 0 deletions

View File

@ -110,8 +110,10 @@ sub gettemplate {
my $htdocs;
if ($opac) {
$htdocs = $configfile->{'opachtdocs'};
($htdocs) || ($htdocs=$configfile->{opacdir}."/htdocs");
} else {
$htdocs = $configfile->{'intrahtdocs'};
($htdocs) || ($htdocs=$configfile->{intranetdir}."/htdocs");
}
my ($theme, $lang) = themelanguage($htdocs, $tmplbase);