[NUUG fiksgatami] [patch] Display correct email address on the contact page

Petter Reinholdtsen pere at hungry.com
Sat Jan 24 11:42:27 CET 2009


At the moment, the contact page do not display the configured email
address, but an hardcoded team at fixmystreet.com.  This patch solve it.

Index: bci/web/contact.cgi
===================================================================
RCS file: /repos/mysociety/bci/web/contact.cgi,v
retrieving revision 1.36
diff -u -3 -p -u -r1.36 contact.cgi
--- bci/web/contact.cgi 15 Oct 2008 13:57:55 -0000      1.36
+++ bci/web/contact.cgi 24 Jan 2009 10:28:36 -0000
@@ -115,11 +115,12 @@ sub contact_page {
 website. Just fill in the form. Please don’t contact us about individual empty
 homes; use the box accessed from <a href="/">the front page</a>.');
     } else {
+        my $mailto = mySociety::Config::get('CONTACT_EMAIL');
         $out .= $q->p(_('Please do <strong>not</strong> report problems through this form; messages go to
 the team behind FixMyStreet, not a council. To report a problem,
 please <a href="/">go to the front page</a> and follow the instructions.'));
         $out .= $q->p(_("We'd love to hear what you think about this site. Just fill in the form, or
-send an email to <a href='mailto:team&#64;fixmystreet.com'>team&#64;fixmystreet.com</a>:"));
+send an email to <a href='mailto:$mailto'>$mailto</a>:"));
     }
     my $label_name = _('Your name:');
     my $label_email = _('Your&nbsp;email:');

Changing it in the translation is not really an option, as the english
presentation would still be wrong.

Happy hacking,
-- 
Petter Reinholdtsen


More information about the fiksgatami mailing list