diff options
author | francis <francis> | 2008-07-09 07:29:54 +0000 |
---|---|---|
committer | francis <francis> | 2008-07-09 07:29:54 +0000 |
commit | b48f38d93930e3d92fc68251f65610f9eb157715 (patch) | |
tree | 15b1340b956b37a1109eafc5e7aa5fdc7d053e8b /app/controllers/help_controller.rb | |
parent | ddef9c677eeb5917c6b3628ed6176a96dcb5f7da (diff) |
Give email address on contact form.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index f701d38cf..a1da642b0 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: help_controller.rb,v 1.5 2008-02-29 10:34:15 francis Exp $ +# $Id: help_controller.rb,v 1.6 2008-07-09 07:29:54 francis Exp $ class HelpController < ApplicationController @@ -12,6 +12,9 @@ class HelpController < ApplicationController end def contact + @contact_email = MySociety::Config.get("CONTACT_EMAIL", 'contact@localhost') + @contact_email.gsub!(/@/, "@") + if params[:submitted_contact_form] if @user params[:contact][:email] = @user.email |