forgot to add 'utf-8' argument to new_from_xml()
[koha.git] / mainpage.pl
index c58e505..a2d845f 100755 (executable)
@@ -9,7 +9,7 @@ use CGI;
 use C4::Auth;
 use C4::AuthoritiesMarc;
 use C4::Koha;
-
+use C4::NewsChannels;
 my $query = new CGI;
 my $authtypes = getauthtypes;
 my @authtypesloop;
@@ -37,4 +37,8 @@ my $marc_p = C4::Context->boolean_preference("marc");
 $template->param(NOTMARC => !$marc_p);
 $template->param(authtypesloop => \@authtypesloop);
 
+my ($koha_news_count, $all_koha_news) = &get_opac_news(undef, 'koha');
+$template->param(koha_news        => $all_koha_news);
+$template->param(koha_news_count  => $koha_news_count);
+
 output_html_with_http_headers $query, $cookie, $template->output;