fix for #478 in parameters section
[koha.git] / opac / opac-readingrecord.pl
index 1db4663..c2cfa40 100755 (executable)
@@ -8,6 +8,7 @@ use C4::Koha;
 use C4::Circulation::Circ2;
 use C4::Search;
 use HTML::Template;
+use C4::Interface::CGI::Output;
 
 my $query = new CGI;
 my ($template, $borrowernumber, $cookie) 
@@ -51,5 +52,5 @@ $template->param(count => $count);
 $template->param(READING_RECORD => $issues);
 
 
-print $query->header(-cookie => $cookie), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;