1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-25 18:33:12 +02:00

SEF Url in news rss.

This commit is contained in:
Cameron
2015-02-08 10:31:35 -08:00
parent 1312855b3e
commit d633455c73

View File

@ -217,7 +217,10 @@ class rssCreate
foreach($tmp as $value)
{
$this -> rssItems[$loop]['title'] = $value['news_title'];
$this -> rssItems[$loop]['link'] = "http://".$_SERVER['HTTP_HOST'].e_HTTP."news.php?item.".$value['news_id'].".".$value['news_category'];
// $this -> rssItems[$loop]['link'] = "http://".$_SERVER['HTTP_HOST'].e_HTTP."news.php?item.".$value['news_id'].".".$value['news_category'];
$this -> rssItems[$loop]['link'] = e107::getUrl()->create('news/view/item', $value, 'full=1');
if($value['news_summary'] && $pref['rss_summarydiz'])
{
$this -> rssItems[$loop]['description'] = $value['news_summary'];