diff --git a/e107_plugins/news/e_rss.php b/e107_plugins/news/e_rss.php index 9002563a29..09fef8d706 100644 --- a/e107_plugins/news/e_rss.php +++ b/e107_plugins/news/e_rss.php @@ -97,7 +97,17 @@ function data($parms=null) $rss[$i]['author'] = $value['user_name']; $rss[$i]['author_email'] = $value['user_email']; $rss[$i]['category_name'] = $tp->toHTML($value['category_name'],TRUE,'defs'); - $rss[$i]['category_link'] = SITEURL."news.php?cat.".$value['news_category']; //TODO SEFURL. + //category sef + if (empty($value['category_sef'])) + { + $url = SITEURL . "news.php?cat." . $value['news_category']; + } + else + { + $category = array('id' => $value['news_category'], 'name' => $value['category_sef']); + $opts = array('full' => 1); + $url = e107::getUrl()->create('news/list/category', $category, $opts); + } $rss[$i]['datestamp'] = $value['news_datestamp']; $rss[$i]['description'] = $this->getDescription($value); @@ -193,4 +203,4 @@ function getMedia($row) return $ret; } -} \ No newline at end of file +}