|
@@ 87-91 (lines=5) @@
|
| 84 |
|
$defaults = $this->owner->config()->defaults; |
| 85 |
|
|
| 86 |
|
// Set if comments should be enabled by default |
| 87 |
|
if (isset($defaults['ProvideComments'])) { |
| 88 |
|
$this->owner->ProvideComments = $defaults['ProvideComments']; |
| 89 |
|
} else { |
| 90 |
|
$this->owner->ProvideComments = $this->owner->getCommentsOption('enabled') ? 1 : 0; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
// If moderation options should be configurable via the CMS then |
| 94 |
|
if (isset($defaults['ModerationRequired'])) { |
|
@@ 105-109 (lines=5) @@
|
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
// Set login required |
| 105 |
|
if (isset($defaults['CommentsRequireLogin'])) { |
| 106 |
|
$this->owner->CommentsRequireLogin = $defaults['CommentsRequireLogin']; |
| 107 |
|
} else { |
| 108 |
|
$this->owner->CommentsRequireLogin = $this->owner->getCommentsOption('require_login') ? 1 : 0; |
| 109 |
|
} |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
|