diff options
author | louise <louise> | 2009-11-11 14:23:05 +0000 |
---|---|---|
committer | louise <louise> | 2009-11-11 14:23:05 +0000 |
commit | 8ddc93f3571cac8da8ee9d09c98cac523ec4888c (patch) | |
tree | 9d08a4ac62f8298c3aea62fb3988468fc0b37cf1 | |
parent | e025a608f5c73f5c546b1cbcef26e1a6d85bfe0d (diff) |
Allow cobrand to determine display of cross sell ads
-rwxr-xr-x | web/tms-signup.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/tms-signup.cgi b/web/tms-signup.cgi index 12cd47fb3..2bafd1543 100755 --- a/web/tms-signup.cgi +++ b/web/tms-signup.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: tms-signup.cgi,v 1.4 2009-09-03 13:36:48 louise Exp $ +# $Id: tms-signup.cgi,v 1.5 2009-11-11 14:23:05 louise Exp $ use strict; use Standard; @@ -55,7 +55,11 @@ sub tms_updates_form { if (@errors) { $out .= '<ul class="error"><li>' . join('</li><li>', @errors) . '</li></ul>'; } - $out .= CrossSell::display_tms_form(%input); + my $cobrand = Page::get_cobrand($q); + my $display_advert = Cobrand::allow_crosssell_adverts($cobrand); + if ($display_advert) { + $out .= CrossSell::display_tms_form(%input); + } return $out; } |