From 19b34207223950ea47393f5e0a595455d18a0bee Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 6 Aug 2007 01:03:19 +0000 Subject: [PATCH] Added anchors to page comments in rss git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@39610 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 2 +- templates/PageCommentInterface_singlecomment.ss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index 02011322..1f158368 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -23,7 +23,7 @@ class PageComment extends DataObject { * @return string link to this comment. */ function Link() { - return $this->Parent()->Link(); + return $this->Parent()->Link() . '#PageComment_'. $this->ID; } diff --git a/templates/PageCommentInterface_singlecomment.ss b/templates/PageCommentInterface_singlecomment.ss index 7075bec4..b575a05b 100755 --- a/templates/PageCommentInterface_singlecomment.ss +++ b/templates/PageCommentInterface_singlecomment.ss @@ -1,4 +1,4 @@ -

$Comment.XML

+

$Comment.XML

Posted by $Name, $Created.Nice ($Created.Ago)