diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-22 20:48:10 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-22 20:48:10 +0000 |
commit | d770406d652c4934e312d40d671082dc76910a5d (patch) | |
tree | a879612abc295677cb84dfde53a9b3b1ca57f174 /lib/news.php | |
parent | 49bb12e1632f089157eedda7ff7b1db6cdba62ee (diff) | |
download | www-d770406d652c4934e312d40d671082dc76910a5d.tar www-d770406d652c4934e312d40d671082dc76910a5d.tar.gz www-d770406d652c4934e312d40d671082dc76910a5d.tar.bz2 www-d770406d652c4934e312d40d671082dc76910a5d.tar.xz www-d770406d652c4934e312d40d671082dc76910a5d.zip |
show localized date
Diffstat (limited to 'lib/news.php')
-rw-r--r-- | lib/news.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/news.php b/lib/news.php index 3a9f7bd86..736af1dd2 100644 --- a/lib/news.php +++ b/lib/news.php @@ -101,7 +101,7 @@ function get_feed($url, $count = 5, $cache_timeout = 5) /** */ -function show_feed($title, $link, $feed, $count = 5, $skip = null) { +function show_feed($locale, $title, $link, $feed, $count = 5, $skip = null) { if (!is_null($skip)) $count += 5; @@ -118,7 +118,7 @@ function show_feed($title, $link, $feed, $count = 5, $skip = null) { continue; $s .= sprintf('<li><a href="%s">%s</a> <span class="dt">%s</span></li>', - $d['link'], $d['title'], news_date($d['date'], 'fr')); + $d['link'], $d['title'], news_date($d['date'], $locale)); } $s .= '</ul>'; echo $s; |