aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--en/community/index.php4
-rw-r--r--lib/news.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/en/community/index.php b/en/community/index.php
index 8bf45ad9f..222de5d37 100644
--- a/en/community/index.php
+++ b/en/community/index.php
@@ -88,9 +88,9 @@ include '../../lib/news.php';
<h2><a href="<?php _e('blog_url')?>"><?php _e('News');?></a></h2>
<?php
if (_t('planet_url') != 'planet_url')
- show_feed(null, _t('planet_url'), _t('planet_url') . '?type=rss10', 9);
+ show_feed($locale, null, _t('planet_url'), _t('planet_url') . '?type=rss10', 9);
elseif (_t('blog_url') != 'blog_url')
- show_feed(null, _t('blog_url'), _t('blog_url') . '?feed=rss', 9);
+ show_feed($locale, null, _t('blog_url'), _t('blog_url') . '?feed=rss', 9);
// don't work:
//show_feed('Mageia MLs', '', 'https://ml.mageia.org/l/rss/active_lists?count=20&for=10');
//show_feed('Mageia Forum', 'http://forum.mageia.org/en/', 'https://forums.mageia.org/en/feed.php?mode=topics_active');
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;