From 8c08f4337693557dad68d92b0197a4101dbec4c9 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 27 Nov 2018 13:19:55 +0100 Subject: [PATCH] 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. --- src/Extensions/CommentsExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Extensions/CommentsExtension.php b/src/Extensions/CommentsExtension.php index ce0ec93..892d190 100644 --- a/src/Extensions/CommentsExtension.php +++ b/src/Extensions/CommentsExtension.php @@ -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 ); }