Fixed authors breaking rss feeds

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39611 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-06 01:07:41 +00:00
parent 19b3420722
commit 3e5a0968ae

View File

@ -132,7 +132,7 @@ class PageComment extends DataObject {
} }
function RSSTitle() { function RSSTitle() {
return "Comment by '$this->Name' on " . $this->Parent()->Title; return "Comment by '". Convert::raw2xml($this->Name) . "' on " . $this->Parent()->Title;
} }
function rss() { function rss() {
$rss = new RSSFeed(DataObject::get("PageComment", "ParentID > 0", "Created DESC", "", 10), "home/", "Page comments", "", "RSSTitle", "Comment", "Name"); $rss = new RSSFeed(DataObject::get("PageComment", "ParentID > 0", "Created DESC", "", 10), "home/", "Page comments", "", "RSSTitle", "Comment", "Name");