aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2014-05-20 14:52:00 +0100
committerDave Arter <davea@mysociety.org>2016-07-08 15:28:21 +0100
commit50c388749c727bf1e252e00c1865cb595b4972a7 (patch)
treeeed555edec2dbe619766daf8f8b939462ab348b1
parent7f7e030db5f676e8a89abde5f62f84f084609381 (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).
-rw-r--r--perllib/FixMyStreet/Cobrand/Angus.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Bromley.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Greenwich.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Harrogate.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Oxfordshire.pm3
-rw-r--r--perllib/FixMyStreet/Cobrand/Stevenage.pm3
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';
}