From fab4b92e06e6c44bdc33672b46a915c67b3486ca Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 10 Dec 2008 00:40:21 +0000 Subject: [PATCH] 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 --- api/RSSFeed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/RSSFeed.php b/api/RSSFeed.php index ce3f583bc..73a88396e 100755 --- a/api/RSSFeed.php +++ b/api/RSSFeed.php @@ -193,6 +193,7 @@ class RSSFeed extends ViewableData { * Return the content of the RSS feed */ function feedContent() { + SSViewer::set_source_file_comments(false); return str_replace(' ', ' ', $this->renderWith('RSSFeed')); } }