Moved C4/Charset.pm to C4/Interface/CGI/Output.pm
[koha.git] / opac / opac-search.pl
index b03de61..93bfa39 100755 (executable)
@@ -3,7 +3,7 @@ use strict;
 require Exporter;
 
 use C4::Auth;
-use C4::Charset;
+use C4::Interface::CGI::Output;
 use C4::Context;
 use CGI;
 use C4::Database;
@@ -32,7 +32,4 @@ my ($template, $borrowernumber, $cookie)
 
 $template->param(classlist => $classlist);
 
-print $query->header(
-    -type => guesstype($template->output),
-    -cookie => $cookie
-), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;