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
This commit is contained in:
Andrew O'Neil 2007-08-06 01:03:19 +00:00
parent 93894fd11b
commit 19b3420722
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -1,4 +1,4 @@
<p class="comment">$Comment.XML</p>
<p class="comment" id="PageComment_$ID">$Comment.XML</p>
<p class="info">
<span>Posted by $Name, $Created.Nice ($Created.Ago)</span>
<br />