Switched from "picktemplate" to "gettemplate"
This commit is contained in:
parent
5a503a4b31
commit
442f35c079
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue