BUGFIX Don't show template comments in RSSFeed, or it'll break the XML document

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@68027 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-12-10 00:40:21 +00:00 committed by Sam Minnee
parent 79baa1b092
commit fab4b92e06

View File

@ -193,6 +193,7 @@ class RSSFeed extends ViewableData {
* Return the content of the RSS feed * Return the content of the RSS feed
*/ */
function feedContent() { function feedContent() {
SSViewer::set_source_file_comments(false);
return str_replace(' ', ' ', $this->renderWith('RSSFeed')); return str_replace(' ', ' ', $this->renderWith('RSSFeed'));
} }
} }