From 75164d4c6931930385f3cca3fae39bc0554128bc Mon Sep 17 00:00:00 2001 From: acli Date: Sun, 9 Feb 2003 09:00:12 +0000 Subject: [PATCH] Update to get_template_and_user --- moredetail.pl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/moredetail.pl b/moredetail.pl index 8a7e0e271d..978d34484c 100755 --- a/moredetail.pl +++ b/moredetail.pl @@ -36,16 +36,16 @@ my $includes = C4::Context->config('includes') || my $startfrom=$query->param('startfrom') || 0; my $subject=$query->param('subject'); + # if its a subject we need to use the subject.tmpl -my $template; -if ($subject){ - $template = gettemplate("catalogue/subject.tmpl"); -} else { - $template = gettemplate("catalogue/moredetail.tmpl"); -} -my $flagsrequired; -$flagsrequired->{catalogue}=1; -my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 0, $flagsrequired); +my ($template, $loggedinuser, $cookie) = get_template_and_user({ + template_name => ($subject? 'catalogue/subject.tmpl': + 'catalogue/moredetail.tmpl'), + query => $query, + type => "intranet", + authnotrequired => 0, + flagsrequired => {catalogue => 1}, + }); # get variables -- 2.39.5