From 83dc7abacfd2d3b03d9bb3dc92c8dc4f0045f3e3 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Wed, 11 Jun 2003 20:11:44 +0000 Subject: [PATCH] This was the last script using the old "pathtotemplate" subroutine. Replaced with get_template_and_user() call. --- overdue.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/overdue.pl b/overdue.pl index 1d20a7e38f..02cb2dfc65 100755 --- a/overdue.pl +++ b/overdue.pl @@ -29,9 +29,14 @@ my $input = new CGI; my $type=$input->param('type'); my $theme = $input->param('theme'); # only used if allowthemeoverride is set -my %tmpldata = pathtotemplate ( template => 'overdue.tmpl', theme => $theme); -my $template = HTML::Template->new( filename => $tmpldata{'path'}, - die_on_bad_params => 0); +my ($template, $loggedinuser, $cookie) + = get_template_and_user({template_name => "overdue.tmpl", + query => $query, + type => "intranet", + authnotrequired => 0, + flagsrequired => {catalogue => 1}, + debug => 1, + }); my $duedate; my $bornum; my $itemnum; -- 2.39.2