Permalink
Browse files

This was the last script using the old "pathtotemplate" subroutine. R…

…eplaced

with get_template_and_user() call.
  • Loading branch information...
1 parent 6c20304 commit 83dc7abacfd2d3b03d9bb3dc92c8dc4f0045f3e3 tonnesen committed Jun 11, 2003
Showing with 8 additions and 3 deletions.
  1. +8 −3 overdue.pl
View
@@ -29,9 +29,14 @@
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;

0 comments on commit 83dc7ab

Please sign in to comment.