use CGI;
use C4::Search;
use C4::Auth;
+use C4::Interface::CGI::Output;
use HTML::Template;
my $query=new CGI;
$template->param(BIBLIO_RESULTS => $resultsarray);
$template->param(ITEM_RESULTS => $itemsarray);
$template->param(WEB_RESULTS => $webarray);
-$template->param(SITE_RESULTS => $sitearray);
+$template->param(SITE_RESULTS => $sitearray,
+);
-print $query->header(-cookie => $cookie), $template->output;
+output_html_with_http_headers $query, $cookie, $template->output;