Skip to content

Commit

Permalink
cs fixed + docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzeldorn committed Jul 19, 2024
1 parent 3e97850 commit 9d265c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/quickstart.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ <h3>Attributes</h3>
<td>If you switch on stealth mode, HazzelForms won't output the submit button. Furthermore it will ignore error messages and
the grid wrapper. You will need javascript to submit the form. This takes effect when <code>$form->renderAll();</code> is used to create DOM elements.</td>
</tr>
<tr>
<td>uses_ajax</td>
<td>boolean</td>
<td>false</td>
<td>When using AJAX for form submission, HazzelForms will make the errors available als plain strings instead of HTML tags</td>
</tr>
<tr>
<td>submitcaption</td>
<td>string</td>
Expand Down
2 changes: 1 addition & 1 deletion src/HazzelForms/Field/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getErrorMessage($lang)
}

// check error field
public function hasError()
public function hasError()
{
return !empty($this->error);
}
Expand Down
2 changes: 1 addition & 1 deletion src/HazzelForms/Field/Options/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function returnField()
}

// Build error message
public function getErrorMessage($lang)
public function getErrorMessage($lang)
{
if (!empty($this->error)) {
return (count($this->options) == 1) ? $lang->getMessage('option_fields_single', $this->error) : $lang->getMessage('option_fields', $this->error);
Expand Down
2 changes: 1 addition & 1 deletion src/HazzelForms/HazzelForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ public function sendMail($to, $from, $replyTo = '', $senderName = 'HazzelForms',
$this->mailer->setFrom($from, $senderName);
$this->mailer->addAddress($to);
if (!empty($replyTo)) {
$this->mailer->addReplyTo($replyTo);
$this->mailer->addReplyTo($replyTo);
}

$this->mailer->isHTML(true);
Expand Down

0 comments on commit 9d265c6

Please sign in to comment.