@@ 118-122 (lines=5) @@ | ||
115 | $defaults = $this->owner->config()->get('defaults'); |
|
116 | ||
117 | // Set if comments should be enabled by default |
|
118 | if (isset($defaults['ProvideComments'])) { |
|
119 | $this->owner->ProvideComments = $defaults['ProvideComments']; |
|
120 | } else { |
|
121 | $this->owner->ProvideComments = $this->owner->getCommentsOption('enabled') ? 1 : 0; |
|
122 | } |
|
123 | ||
124 | // If moderation options should be configurable via the CMS then |
|
125 | if (isset($defaults['ModerationRequired'])) { |
|
@@ 136-140 (lines=5) @@ | ||
133 | } |
|
134 | ||
135 | // Set login required |
|
136 | if (isset($defaults['CommentsRequireLogin'])) { |
|
137 | $this->owner->CommentsRequireLogin = $defaults['CommentsRequireLogin']; |
|
138 | } else { |
|
139 | $this->owner->CommentsRequireLogin = $this->owner->getCommentsOption('require_login') ? 1 : 0; |
|
140 | } |
|
141 | } |
|
142 | ||
143 |