From 442f35c0795ae403ad78bf50d57e942cf163fa56 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Wed, 9 Oct 2002 18:02:15 +0000 Subject: [PATCH] Switched from "picktemplate" to "gettemplate" --- moredetail.pl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/moredetail.pl b/moredetail.pl index 931750e0a5..07bc6d849c 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -30,16 +30,10 @@ my $query=new CGI; my $includes = C4::Context->config('includes') || "/usr/local/www/hdl/htdocs/includes"; -my $templatebase="catalogue/moredetail.tmpl"; my $startfrom=$query->param('startfrom') || 0; -my $theme=picktemplate($includes, $templatebase); -my $subject=$query->param('subject'); -# if its a subject we need to use the subject.tmpl -if ($subject){ - $templatebase=~ s/searchresults\.tmpl/subject\.tmpl/; -} -my $template = HTML::Template->new(filename => "$includes/templates/$theme/$templatebase", die_on_bad_params => 0, path => [$includes]); + +my $template = gettemplate("catalogue/moredetail.tmpl"); # get variables -- 2.39.5