1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Bugtracker #5080 - filter site disclaimer in RSS - thanks casimps1

This commit is contained in:
e107steved
2010-10-16 20:23:30 +00:00
parent 8ac54e715b
commit 097bddbb5e

View File

@@ -386,7 +386,7 @@ class rssCreate
function buildRss($rss_title)
{
global $sql, $pref;
global $pref;
header('Content-type: application/xml', TRUE);
$rss_title = $this->e107->tp->toRss($pref['sitename']." : ".$rss_title);
@@ -445,7 +445,7 @@ class rssCreate
echo $this->e107->tp->toHtml($rss_custom_channel,FALSE)."\n"; // must not convert to CDATA.
echo "<language>".CORE_LC.(defined("CORE_LC2") ? "-".CORE_LC2 : "")."</language>
<copyright>".preg_replace("#\<br \/\>|\n|\r#si", "", SITEDISCLAIMER)."</copyright>
<copyright>".$this->e107->tp->toRss(SITEDISCLAIMER)."</copyright>
<managingEditor>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</managingEditor>
<webMaster>".$this->nospam($pref['siteadminemail'])." (".$pref['siteadmin'].")</webMaster>
<pubDate>".date("r",($time + $this -> offset))."</pubDate>