aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-05-22 20:48:10 +0000
committerRomain d'Alverny <rda@mageia.org>2012-05-22 20:48:10 +0000
commitd770406d652c4934e312d40d671082dc76910a5d (patch)
treea879612abc295677cb84dfde53a9b3b1ca57f174 /lib
parent49bb12e1632f089157eedda7ff7b1db6cdba62ee (diff)
downloadwww-d770406d652c4934e312d40d671082dc76910a5d.tar
www-d770406d652c4934e312d40d671082dc76910a5d.tar.gz
www-d770406d652c4934e312d40d671082dc76910a5d.tar.bz2
www-d770406d652c4934e312d40d671082dc76910a5d.tar.xz
www-d770406d652c4934e312d40d671082dc76910a5d.zip
show localized date
Diffstat (limited to 'lib')
-rw-r--r--lib/news.php4
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;