mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Fix issue processwire/processwire-issues#866
This commit is contained in:
@@ -169,6 +169,10 @@ class CommentForm extends Wire implements CommentFormInterface {
|
||||
$this->options['pendingMessage'] = "<p class='success pending'><strong>" . $this->_('Your comment has been submitted and will appear once approved by the moderator.') . "</strong></p>";
|
||||
$this->options['errorMessage'] = "<p class='error'><strong>" . $this->_('Your submission was not saved due to one or more errors. Please check that you have completed all fields before submitting again.') . "</strong></p>";
|
||||
|
||||
if(substr($this->wire('input')->url(), -1) != '/') {
|
||||
$this->options['attrs']['action'] = $page->url;
|
||||
}
|
||||
|
||||
// default labels
|
||||
$this->options['labels']['cite'] = $this->_('Your Name');
|
||||
$this->options['labels']['email'] = $this->_('Your E-Mail');
|
||||
|
Reference in New Issue
Block a user