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 6d5d630 commit cd1c276
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 @@ -75,7 +75,7 @@ <h3 class="comment-title">
<f:form.textarea id="comment" property="comment" class="form-control"/>
</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 cd1c276

Please sign in to comment.