Updates for using (OPAC) user log-in in 1.3
[srvgit] / opac / opac-user.pl
index 481bb07..0ff4c48 100755 (executable)
@@ -9,6 +9,8 @@ use C4::Circulation::Circ2;
 use C4::Circulation::Renewals2;
 use C4::Reserves2;
 use C4::Search;
+use C4::Interface::CGI::Output;
+use HTML::Template;
 
 my $query = new CGI;
 my ($template, $borrowernumber, $cookie) 
@@ -130,5 +132,5 @@ foreach my $res (@$reserves) {
 # $template->param(WAITING => \@waiting);
 $template->param(waiting_count => $wcount);
 
-print $query->header(-cookie => $cookie), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;