diff options
author | Dave Arter <davea@mysociety.org> | 2016-03-30 16:18:36 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-03-30 16:18:36 +0100 |
commit | 59695f5e5952854d8b6fcb41473107614ffb5ef3 (patch) | |
tree | 1ad4c085cb95a075e6a84a1c26720eaadd5fbd08 /perllib/FixMyStreet/Cobrand/Greenwich.pm | |
parent | 0b7146724c9c9e717ed4e06bcf7758d00e4b989d (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.pm | 5 |
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" ); } |