From 5065ef7e31c27884b538660a20de61adcaa59ae9 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 2 Jul 2010 02:12:49 +0000 Subject: [PATCH] Bugfix: Podcast compatibility issues corrected. --- e107_plugins/rss_menu/rss.php | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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)."\n"; + } + } echo ""; }