mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Pass parent controller through to template for helper functions
This commit is contained in:
parent
e87963baae
commit
bfa06bee18
@ -123,6 +123,7 @@ class CommentsExtension extends DataExtension {
|
||||
'RssLink' => "CommentingController/rss",
|
||||
'RssLinkPage' => "CommentingController/rss/". $this->ownerBaseClass . '/'.$this->owner->ID,
|
||||
'CommentsEnabled' => $enabled,
|
||||
'Parent' => $this->owner,
|
||||
'AddCommentForm' => $form,
|
||||
'ModeratedSubmitted' => $moderatedSubmitted,
|
||||
'Comments' => $this->Comments()
|
||||
|
Loading…
Reference in New Issue
Block a user