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 | |
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')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Angus.pm | 5 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Greenwich.pm | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Angus.pm b/perllib/FixMyStreet/Cobrand/Angus.pm index 138c54660..23d0d2c58 100644 --- a/perllib/FixMyStreet/Cobrand/Angus.pm +++ b/perllib/FixMyStreet/Cobrand/Angus.pm @@ -9,6 +9,11 @@ sub council_area { return 'Angus'; } sub council_name { return 'Angus Council'; } sub council_url { return 'angus'; } +sub base_url { + return FixMyStreet->config('BASE_URL') if FixMyStreet->config('STAGING_SITE'); + return 'https://fix.angus.gov.uk'; +} + sub enter_postcode_text { my ($self) = @_; return 'Enter an Angus postcode, or street name and area'; 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" ); } |