removing warnings
[koha.git] / mainpage.pl
index 5ca4a0f..cf3b486 100755 (executable)
@@ -4,7 +4,7 @@ use strict;
 require Exporter;
 use C4::Database;
 use C4::Output;  # contains gettemplate
-use C4::Charset;
+use C4::Interface::CGI::Output;
 use CGI;
 use C4::Auth;
 
@@ -18,7 +18,4 @@ my ($template, $loggedinuser, $cookie)
                             debug => 1,
                             });
 
-print  $query->header(
-   -type => guesstype($template->output),
-   -cookie => $cookie
-), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;