aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/Greenwich.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-03-30 16:18:36 +0100
committerDave Arter <davea@mysociety.org>2016-03-30 16:18:36 +0100
commit59695f5e5952854d8b6fcb41473107614ffb5ef3 (patch)
tree1ad4c085cb95a075e6a84a1c26720eaadd5fbd08 /perllib/FixMyStreet/Cobrand/Greenwich.pm
parent0b7146724c9c9e717ed4e06bcf7758d00e4b989d (diff)
[Angus, Greenwich] Add base_url to resolve mixed content issue
Some img tags were using http://[cobrand].fixmystreet.com/ URLs when their including page was served over HTTPS, causing mixed content warnings on IE.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Greenwich.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/Greenwich.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Greenwich.pm b/perllib/FixMyStreet/Cobrand/Greenwich.pm
index 7535a34bf..d23e62138 100644
--- a/perllib/FixMyStreet/Cobrand/Greenwich.pm
+++ b/perllib/FixMyStreet/Cobrand/Greenwich.pm
@@ -9,6 +9,11 @@ sub council_area { return 'Greenwich'; }
sub council_name { return 'Royal Borough of Greenwich'; }
sub council_url { return 'greenwich'; }
+sub base_url {
+ return FixMyStreet->config('BASE_URL') if FixMyStreet->config('STAGING_SITE');
+ return 'https://fix.royalgreenwich.gov.uk';
+}
+
sub example_places {
return ( 'SE18 6HQ', "Woolwich Road" );
}