Skip to content

Commit

Permalink
[TASK] Rename comment form explanation hint (#182)
Browse files Browse the repository at this point in the history
This reflects its purpose better and does not prevent 3rd party from adding a proper "headline" field to comments.
  • Loading branch information
mbrodala authored Jan 19, 2021
1 parent d61c41d commit cd8a00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Factory/CommentFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function build(array $configuration, string $prototypeName = null): FormD
$commentField->addValidator($objectManager->get(NotEmptyValidator::class));
$commentField->addValidator($objectManager->get(StringLengthValidator::class, ['minimum' => 5]));

$explanationText = $page->createElement('headline', 'StaticText');
$explanationText = $page->createElement('explanation', 'StaticText');
$explanationText->setProperty('text', LocalizationUtility::translate('label.required.field', 'blog') . ' ' . LocalizationUtility::translate('label.required.field.explanation', 'blog'));

if ($captcha['enable'] && $captcha['sitekey'] && $captcha['secret']) {
Expand Down

0 comments on commit cd8a00a

Please sign in to comment.