mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
FIX RSS feed for comments now render correctly
The comment DataList filter applies ParentClass = $className - when this is the base class, it fails to recognise comments for a BlogPost. This change uses the late class name instead.
This commit is contained in:
parent
f74d91041b
commit
8c08f43376
@ -441,7 +441,7 @@ class CommentsExtension extends DataExtension
|
||||
{
|
||||
return Controller::join_links(
|
||||
$this->getCommentRSSLink(),
|
||||
str_replace('\\', '-', $this->owner->baseClass()),
|
||||
str_replace('\\', '-', get_class($this->owner)),
|
||||
$this->owner->ID
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user