From 82889d8e31cc69e05b23cb3eef59e152e46a0d24 Mon Sep 17 00:00:00 2001 From: finlayt Date: Wed, 11 Sep 2002 03:56:26 +0000 Subject: [PATCH] Altered to use the new themelanguage method in Output.pm --- tmpl/opacmain.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tmpl/opacmain.pl b/tmpl/opacmain.pl index 379719bbac..a36f523143 100755 --- a/tmpl/opacmain.pl +++ b/tmpl/opacmain.pl @@ -27,12 +27,11 @@ while () { } } -my $includes=$configfile{'includes'}; -($includes) || ($includes="/usr/local/www/hdl/htdocs/includes"); -my $templatebase="opac/opac-main.tmpl"; -my $theme=picktemplate($includes, $templatebase); +my $htdocs=$configfile{'opachtdocs'}; +my $templatebase="opac-main.tmpl"; +my ($theme, $lang)=themelanguage($htdocs, $templatebase); -my $template = HTML::Template->new(filename => "$includes/templates/$theme/$templatebase", die_on_bad_params => 0, path => [$includes]); +my $template = HTML::Template->new(filename => "$htdocs/$theme/$lang/$templatebase", die_on_bad_params => 0, path => ["$htdocs/includes"]); #$template->param(SITE_RESULTS => $sitearray); print "Content-Type: text/html\n\n", $template->output; -- 2.39.5