From 8ab18fe1d0feac94785b8441820e0b94ec658e69 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sun, 22 Jul 2012 09:46:51 +1200 Subject: [PATCH] Put comment configuration on the settings tab --- code/extensions/CommentsExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/extensions/CommentsExtension.php b/code/extensions/CommentsExtension.php index 9fc4fd7..21e7138 100644 --- a/code/extensions/CommentsExtension.php +++ b/code/extensions/CommentsExtension.php @@ -51,9 +51,9 @@ class CommentsExtension extends DataExtension { * * @param FieldSet */ - public function updateCMSFields(FieldList $fields) { + public function updateSettingsFields(FieldList $fields) { if($this->attachedToSiteTree()) { - $fields->addFieldToTab('Root.Behaviour', + $fields->addFieldToTab('Root.Settings', new CheckboxField('ProvideComments', _t('Comment.ALLOWCOMMENTS', 'Allow Comments')) ); }