From 0d0e606eefa347a100cf276b1bc43b832cc48200 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Tue, 22 May 2012 19:47:02 +0000 Subject: new home page and new navigation for Mageia 2 --- lib/news.php | 67 +++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 12 deletions(-) (limited to 'lib/news.php') diff --git a/lib/news.php b/lib/news.php index f2d9b2cb3..3a9f7bd86 100644 --- a/lib/news.php +++ b/lib/news.php @@ -8,11 +8,11 @@ * * @return array */ -function html_news($locale = 'en') +function html_news($locale = 'en', $count = 5) { - $news = get_news($locale); + $news = get_news($locale, $count); $html = '