From fad9ba7d69d7cc1283aa901d2fae9ca29cdb2cea Mon Sep 17 00:00:00 2001 From: tonnesen Date: Tue, 14 May 2002 21:46:11 +0000 Subject: [PATCH] Fixed some breakage... --- html-template/search.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html-template/search.pl b/html-template/search.pl index 2f3ba3c026..b7363a8a86 100755 --- a/html-template/search.pl +++ b/html-template/search.pl @@ -35,7 +35,7 @@ my $includes=$configfile{'includes'}; my $templatebase="catalogue/searchresults.tmpl"; my $startfrom=$query->param('startfrom'); ($startfrom) || ($startfrom=0); -($templatename) || ($templatename=picktemplate($templatebase)); +my $theme=picktemplate($includes, $templatebase); my $template = HTML::Template->new(filename => "$includes/templates/$theme/$templatebase", die_on_bad_params => 0, path => [$includes]); @@ -108,7 +108,6 @@ my $nextstartfrom=($startfrom+20<$count-20) ? ($startfrom+20) : ($count-20); my $prevstartfrom=($startfrom-20>0) ? ($startfrom-20) : (0); $template->param(nextstartfrom => $nextstartfrom); $template->param(prevstartfrom => $prevstartfrom); -$template->param(template => $templatename); $template->param(search => $search); $template->param(SEARCH_RESULTS => $resultsarray); $template->param(includesdir => $includes); -- 2.39.5