Skip to content

Commit

Permalink
[BUGFIX] Do not include google captcha when disabled in settings
Browse files Browse the repository at this point in the history
Fixes: #26
Releases: master, 9.1, 9.0, 8.7
  • Loading branch information
benjaminkott committed May 11, 2019
1 parent 63239b6 commit 9a0643e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Comment/Form.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h3 class="comment-title">
</div>
<p><span class="tx-blog-comment-required"><f:translate key="label.required.field"/> <f:translate key="label.required.field.explanation"/></span></p>

<f:if condition="{settings.comments.google_recaptcha}">
<f:if condition="{settings.comments.google_recaptcha._typoScriptNodeValue}">
<script src="https://www.google.com/recaptcha/api.js"></script>
<div class="g-recaptcha" data-sitekey="{settings.comments.google_recaptcha.website_key}"></div>
</f:if>
Expand Down

0 comments on commit 9a0643e

Please sign in to comment.