aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/View/Web.pm4
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm9
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm2
3 files changed, 1 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/App/View/Web.pm b/perllib/FixMyStreet/App/View/Web.pm
index 092e362f9..eac194dff 100644
--- a/perllib/FixMyStreet/App/View/Web.pm
+++ b/perllib/FixMyStreet/App/View/Web.pm
@@ -83,14 +83,12 @@ sub tprintf {
[% display_crosssell_advert( email, name ) %]
-Displays a crosssell advert if permitted by the cobrand.
+Displays a crosssell advert (will be fixmystreet cobrand only).
=cut
sub display_crosssell_advert {
my ( $self, $c, $email, $name, %data ) = @_;
-
- return unless $c->cobrand->allow_crosssell_adverts();
return CrossSell::display_advert( $c, $email, $name, %data );
}
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 06df07c48..c4135254a 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -421,15 +421,6 @@ Return a boolean indicating whether the cobrand allows photo uploads
sub allow_photo_upload { return 1; }
-=head2 allow_crosssell_adverts
-
-Return a boolean indicating whether the cobrand allows the display of crosssell
-adverts
-
-=cut
-
-sub allow_crosssell_adverts { return 0; }
-
=head2 allow_photo_display
Return a boolean indicating whether the cobrand allows photo display
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 65507b1a1..04c137674 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -10,7 +10,5 @@ sub admin_base_url {
return 'https://secure.mysociety.org/admin/bci/';
}
-sub allow_crosssell_adverts { return 1; }
-
1;