diff --git a/e107_plugins/rss_menu/rss.php b/e107_plugins/rss_menu/rss.php
index ff54264ce..ba54aa68d 100644
--- a/e107_plugins/rss_menu/rss.php
+++ b/e107_plugins/rss_menu/rss.php
@@ -342,7 +342,7 @@ class rssCreate
$this -> rssItems[$k]['description'] = $row['description'];
if($row['enc_url'])
{
- $this -> rssItems[$k]['enc_url'] = SITEURLBASE.e_PLUGIN_ABS.$enc_url.$row['item_id'];
+ $this -> rssItems[$k]['enc_url'] = SITEURLBASE.e_PLUGIN_ABS.$row['enc_url'].$row['item_id'];
}
if($row['enc_leng'])
{
@@ -374,6 +374,10 @@ class rssCreate
{
$this -> rssItems[$k]['pubdate'] = $row['datestamp'];
}
+
+ if($row['custom']){
+ $this -> rssItems[$k]['custom'] = $row['custom'];
+ }
}
}
}
@@ -438,7 +442,7 @@ class rssCreate
".$pref['siteurl']."
".$this->e107->tp->toRss($pref['sitedescription'])."\n";
- echo $this->e107->tp->toRss($rss_custom_channel,TRUE)."\n";
+ echo $this->e107->tp->toHtml($rss_custom_channel,FALSE)."\n"; // must not convert to CDATA.
echo "".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."
".preg_replace("#\
|\n|\r#si", "", SITEDISCLAIMER)."
@@ -524,6 +528,14 @@ class rssCreate
{
echo "".$link."\n";
}
+
+ if(isset($value['custom'])) // custom tags. (podcasts etc)
+ {
+ foreach($value['custom'] as $cKey => $cVal)
+ {
+ echo "<".$cKey.">".$tp->toRss($cVal)."".$cKey.">\n";
+ }
+ }
echo "";
}