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:
Robbie Averill 2018-11-27 13:19:55 +01:00
parent f74d91041b
commit 8c08f43376

View File

@ -441,7 +441,7 @@ class CommentsExtension extends DataExtension
{ {
return Controller::join_links( return Controller::join_links(
$this->getCommentRSSLink(), $this->getCommentRSSLink(),
str_replace('\\', '-', $this->owner->baseClass()), str_replace('\\', '-', get_class($this->owner)),
$this->owner->ID $this->owner->ID
); );
} }