Pass parent controller through to template for helper functions

This commit is contained in:
Will Rossiter 2012-12-16 12:44:57 +13:00
parent e87963baae
commit bfa06bee18

View File

@ -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()