@@ -570,15 +570,15 @@ discard block |
||
| 570 | 570 | _t('Comment.ParentComment_Title', 'This comment is a reply to the below') |
| 571 | 571 | )); |
| 572 | 572 | // Created date |
| 573 | - // FIXME - the method setName in DatetimeField is not chainable, hence |
|
| 574 | - // the lack of chaining here |
|
| 575 | - $createdField = $parent |
|
| 576 | - ->obj('Created') |
|
| 577 | - ->scaffoldFormField($parent->fieldLabel('Created')); |
|
| 578 | - $createdField->setName('ParentComment_Created'); |
|
| 579 | - $createdField->setValue($parent->Created); |
|
| 580 | - $createdField->performReadonlyTransformation(); |
|
| 581 | - $fields->push($createdField); |
|
| 573 | + // FIXME - the method setName in DatetimeField is not chainable, hence |
|
| 574 | + // the lack of chaining here |
|
| 575 | + $createdField = $parent |
|
| 576 | + ->obj('Created') |
|
| 577 | + ->scaffoldFormField($parent->fieldLabel('Created')); |
|
| 578 | + $createdField->setName('ParentComment_Created'); |
|
| 579 | + $createdField->setValue($parent->Created); |
|
| 580 | + $createdField->performReadonlyTransformation(); |
|
| 581 | + $fields->push($createdField); |
|
| 582 | 582 | |
| 583 | 583 | // Name (could be member or string value) |
| 584 | 584 | $fields->push( |
@@ -620,13 +620,13 @@ discard block |
||
| 620 | 620 | */ |
| 621 | 621 | public function getHtmlPurifierService() { |
| 622 | 622 | $config = HTMLPurifier_Config::createDefault(); |
| 623 | - $allowedElements = $this->getOption('html_allowed_elements'); |
|
| 624 | - $config->set('HTML.AllowedElements', $allowedElements); |
|
| 623 | + $allowedElements = $this->getOption('html_allowed_elements'); |
|
| 624 | + $config->set('HTML.AllowedElements', $allowedElements); |
|
| 625 | 625 | |
| 626 | - // This injector cannot be set unless the 'p' element is allowed |
|
| 627 | - if (in_array('p', $allowedElements)) { |
|
| 628 | - $config->set('AutoFormat.AutoParagraph', true); |
|
| 629 | - } |
|
| 626 | + // This injector cannot be set unless the 'p' element is allowed |
|
| 627 | + if (in_array('p', $allowedElements)) { |
|
| 628 | + $config->set('AutoFormat.AutoParagraph', true); |
|
| 629 | + } |
|
| 630 | 630 | |
| 631 | 631 | $config->set('AutoFormat.Linkify', true); |
| 632 | 632 | $config->set('URI.DisableExternalResources', true); |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | || ($this->getOption('frontend_moderation') && $parent->canModerateComments()) |
| 717 | 717 | ); |
| 718 | 718 | if (!$showUnmoderated) { |
| 719 | - $list = $list->filter('Moderated', 1); |
|
| 719 | + $list = $list->filter('Moderated', 1); |
|
| 720 | 720 | } |
| 721 | 721 | |
| 722 | 722 | $this->extend('updateReplies', $list); |