diff options
author | matthew <matthew> | 2009-08-12 11:55:12 +0000 |
---|---|---|
committer | matthew <matthew> | 2009-08-12 11:55:12 +0000 |
commit | 180a4d2c74b92efefcbcd0a4982f48c64edeaadd (patch) | |
tree | c1c3d2b1b1adba3c4a7ea96fb7a41e3750f32e8f /web/alert.cgi | |
parent | ac736a3f9886f22eb43b7e30ae632bd05c6903f3 (diff) |
Put lang in email confirmation URLs, so we can be sure we stay the same.
Diffstat (limited to 'web/alert.cgi')
-rwxr-xr-x | web/alert.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/alert.cgi b/web/alert.cgi index fd3d55f25..cb77a8e4c 100755 --- a/web/alert.cgi +++ b/web/alert.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: alert.cgi,v 1.40 2009-07-10 17:50:40 matthew Exp $ +# $Id: alert.cgi,v 1.41 2009-08-12 11:55:13 matthew Exp $ use strict; use Standard; @@ -405,7 +405,7 @@ sub alert_do_subscribe { } my %h = (); - $h{url} = mySociety::Config::get('BASE_URL') . '/A/' + $h{url} = Page::base_url_with_lang() . '/A/' . mySociety::AuthToken::store('alert', { id => $alert_id, type => 'subscribe', email => $email } ); dbh()->commit(); return Page::send_email($q, $email, undef, 'alert', %h); |