This was the last script using the old "pathtotemplate" subroutine. Replaced

with get_template_and_user() call.
This commit is contained in:
tonnesen 2003-06-11 20:11:44 +00:00
parent 6c203041b1
commit 83dc7abacf

View file

@ -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;