diff options
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Angus.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bromley.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Greenwich.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Harrogate.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Oxfordshire.pm | 3 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Stevenage.pm | 3 |
6 files changed, 12 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Angus.pm b/perllib/FixMyStreet/Cobrand/Angus.pm index 23d0d2c58..0361c2d11 100644 --- a/perllib/FixMyStreet/Cobrand/Angus.pm +++ b/perllib/FixMyStreet/Cobrand/Angus.pm @@ -10,7 +10,8 @@ sub council_name { return 'Angus Council'; } sub council_url { return 'angus'; } 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.angus.gov.uk'; } diff --git a/perllib/FixMyStreet/Cobrand/Bromley.pm b/perllib/FixMyStreet/Cobrand/Bromley.pm index c9f9a98be..2d0cb86f1 100644 --- a/perllib/FixMyStreet/Cobrand/Bromley.pm +++ b/perllib/FixMyStreet/Cobrand/Bromley.pm @@ -10,7 +10,8 @@ sub council_name { return 'Bromley Council'; } sub council_url { return 'bromley'; } 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.bromley.gov.uk'; } 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'; } diff --git a/perllib/FixMyStreet/Cobrand/Harrogate.pm b/perllib/FixMyStreet/Cobrand/Harrogate.pm index 519521867..8f4a6e2ea 100644 --- a/perllib/FixMyStreet/Cobrand/Harrogate.pm +++ b/perllib/FixMyStreet/Cobrand/Harrogate.pm @@ -12,7 +12,8 @@ sub council_url { return 'harrogate'; } sub is_two_tier { return 1; } # with North Yorkshire CC 2235 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 'http://fix.harrogate.gov.uk'; } diff --git a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm index 39fe95405..3b044369e 100644 --- a/perllib/FixMyStreet/Cobrand/Oxfordshire.pm +++ b/perllib/FixMyStreet/Cobrand/Oxfordshire.pm @@ -11,7 +11,8 @@ sub council_url { return 'oxfordshire'; } sub is_two_tier { return 1; } 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://fixmystreet.oxfordshire.gov.uk'; } diff --git a/perllib/FixMyStreet/Cobrand/Stevenage.pm b/perllib/FixMyStreet/Cobrand/Stevenage.pm index 1f90e0498..2c305d326 100644 --- a/perllib/FixMyStreet/Cobrand/Stevenage.pm +++ b/perllib/FixMyStreet/Cobrand/Stevenage.pm @@ -11,7 +11,8 @@ sub council_url { return 'stevenage'; } sub is_two_tier { return 1; } 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 'http://fixmystreet.stevenage.gov.uk'; } |