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 843e2f3 commit b1f4ab4
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 @@ -77,7 +77,7 @@ <h3 class="comment-title">
<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>
Expand Down

0 comments on commit b1f4ab4

Please sign in to comment.