Skip to content

Commit

Permalink
Do not load captcha.js when disabled (#1628)
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifab authored Jul 13, 2021
1 parent b2001b3 commit 0fb1845
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/design/frontend/base/default/layout/captcha.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>user_login</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -46,7 +46,7 @@
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>user_forgotpassword</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -60,7 +60,7 @@
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>user_create</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -74,7 +74,7 @@
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>user_login</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -86,15 +86,15 @@
<block type="core/text_list" name="form.additional.info">
<block type="captcha/captcha" name="captcha.guest.checkout">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>guest_checkout</formId></action>
<action method="setImgWidth"><width>230</width></action>
<action method="setImgHeight"><width>50</width></action>
</block>
<block type="captcha/captcha" name="captcha.register.during.checkout">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>register_during_checkout</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -108,7 +108,7 @@
<block type="core/text_list" name="wishlist.sharing.form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>wishlist_sharing</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand All @@ -122,7 +122,7 @@
<block type="core/text_list" name="sendfriend.send.form.additional.info">
<block type="captcha/captcha" name="captcha">
<reference name="head">
<action method="addJs"><file>mage/captcha.js</file></action>
<action method="addJs" ifconfig="customer/captcha/enable"><file>mage/captcha.js</file></action>
</reference>
<action method="setFormId"><formId>sendfriend_send</formId></action>
<action method="setImgWidth"><width>230</width></action>
Expand Down

0 comments on commit 0fb1845

Please sign in to comment.