diff options
author | Dave Arter <davea@mysociety.org> | 2014-05-20 14:52:00 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-07-08 15:28:21 +0100 |
commit | 50c388749c727bf1e252e00c1865cb595b4972a7 (patch) | |
tree | eed555edec2dbe619766daf8f8b939462ab348b1 /perllib/FixMyStreet/Cobrand/Greenwich.pm | |
parent | 7f7e030db5f676e8a89abde5f62f84f084609381 (diff) |
[UK Councils] Use correct cobrand base URL if STAGING_SITE
Instead of using BASE_URL as the base URL on council cobrands when STAGING is
true, use the UK councils default (which is cobrand name prepended to BASE_URL).
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/Greenwich.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Greenwich.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Greenwich.pm b/perllib/FixMyStreet/Cobrand/Greenwich.pm index d23e62138..7777079a9 100644 --- a/perllib/FixMyStreet/Cobrand/Greenwich.pm +++ b/perllib/FixMyStreet/Cobrand/Greenwich.pm @@ -10,7 +10,8 @@ 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'); + my $self = shift; + return $self->next::method() if FixMyStreet->config('STAGING_SITE'); return 'https://fix.royalgreenwich.gov.uk'; } |