bricks/captcha/lib/bricks/captcha.rb in zena-1.0.0.beta3 vs bricks/captcha/lib/bricks/captcha.rb in zena-1.0.0.rc1
- old
+ new
@@ -40,10 +40,10 @@
module ZafuMethods
def r_captcha
return parser_error("recaptcha keys not set") unless current_site.prop['recaptcha_pub'] && current_site.prop['recaptcha_priv']
res = "<%= get_captcha(:rcc_pub => #{visitor.site.prop['recaptcha_pub'].inspect}, :rcc_priv => #{visitor.site.prop['recaptcha_priv'].inspect}#{get_recaptcha_params}) %>"
res += expand_with
- "<% if visitor.is_anon? -%>#{@markup.wrap(res)}<% end -%>"
+ "<% if visitor.is_anon? %>#{@markup.wrap(res)}<% end %>"
end
def r_mail_hide
text = get_text_for_erb
"<%= visitor.is_anon? ? mail_hide(#{text},:mh_pub => #{visitor.site.prop['mail_hide_pub'].inspect}, :mh_priv => #{visitor.site.prop['mail_hide_priv'].inspect}#{get_recaptcha_params}) : #{text} %>"
\ No newline at end of file