aboutsummaryrefslogtreecommitdiffstats
path: root/web/alert.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/alert.cgi')
-rwxr-xr-xweb/alert.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/alert.cgi b/web/alert.cgi
index 31a4cbe83..3f721e971 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.23 2008-01-28 15:27:00 matthew Exp $
+# $Id: alert.cgi,v 1.24 2008-01-30 18:27:48 matthew Exp $
use strict;
use Standard;
@@ -305,7 +305,7 @@ sub alert_signed_input {
my $alert_id = mySociety::Alert::create($email, 'new_updates', $id);
mySociety::Alert::confirm($alert_id);
$out = $q->p(_('You have successfully subscribed to that alert.'));
- $out .= CrossSell::display_advert($email);
+ $out .= CrossSell::display_advert($q, $email);
} else {
$out = $q->p(_('We could not validate that alert.'));
}
@@ -321,11 +321,11 @@ sub alert_token {
if ($type eq 'subscribe') {
mySociety::Alert::confirm($id);
$out = $q->p(_('You have successfully confirmed your alert.'));
- $out .= CrossSell::display_advert($email);
+ $out .= CrossSell::display_advert($q, $email);
} elsif ($type eq 'unsubscribe') {
mySociety::Alert::delete($id);
$out = $q->p(_('You have successfully deleted your alert.'));
- $out .= CrossSell::display_advert($email);
+ $out .= CrossSell::display_advert($q, $email);
}
return $out;
}