aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/Cobrand/TfL.pm15
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm4
-rw-r--r--perllib/FixMyStreet/Map/Bromley.pm2
3 files changed, 17 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm
index 9dce32d2d..751831b10 100644
--- a/perllib/FixMyStreet/Cobrand/TfL.pm
+++ b/perllib/FixMyStreet/Cobrand/TfL.pm
@@ -25,6 +25,18 @@ sub is_council { 0 }
sub abuse_reports_only { 1 }
sub send_questionnaires { 0 }
+sub disambiguate_location {
+ my $self = shift;
+ my $string = shift;
+
+ return {
+ %{ $self->SUPER::disambiguate_location() },
+ town => "London",
+ };
+}
+
+sub get_geocoder { 'OSM' }
+
sub category_change_force_resend { 1 }
sub do_not_reply_email { shift->feature('do_not_reply_email') }
@@ -41,7 +53,7 @@ sub area_check {
sub enter_postcode_text {
my ($self) = @_;
- return 'Enter a London postcode, or street name and area, or a reference number of a problem previous reported';
+ return 'Enter a London postcode, or street name and area, or a reference number of a problem previously reported';
}
sub privacy_policy_url { 'https://tfl.gov.uk/corporate/privacy-and-cookies/reporting-street-problems' }
@@ -434,6 +446,7 @@ sub _tlrn_categories { [
"Other (TfL)",
"Pavement Defect (uneven surface / cracked paving slab)",
"Pothole",
+ "Pothole (minor)",
"Roadworks",
"Scaffolding blocking carriageway or footway",
"Single Light out (street light)",
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index 1040116ed..3cf678f9c 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -80,7 +80,7 @@ sub find_closest {
sub enter_postcode_text {
my ( $self ) = @_;
- return _('Enter a Zürich street name');
+ return _('Enter a Zürich street name');
}
sub example_places {
@@ -1153,7 +1153,7 @@ sub admin_stats {
if ($y && $m) {
$c->stash->{start_date} = DateTime->new( year => $y, month => $m, day => 1 );
$c->stash->{end_date} = $c->stash->{start_date} + DateTime::Duration->new( months => 1 );
- $optional_params{created} = {
+ $optional_params{'me.created'} = {
'>=', DateTime::Format::Pg->format_datetime($c->stash->{start_date}),
'<', DateTime::Format::Pg->format_datetime($c->stash->{end_date}),
};
diff --git a/perllib/FixMyStreet/Map/Bromley.pm b/perllib/FixMyStreet/Map/Bromley.pm
index 595c83f6d..518382fc0 100644
--- a/perllib/FixMyStreet/Map/Bromley.pm
+++ b/perllib/FixMyStreet/Map/Bromley.pm
@@ -10,7 +10,7 @@ use base 'FixMyStreet::Map::FMS';
use strict;
sub map_tile_base {
- '-', "https://%sfix.bromley.gov.uk/tilma/%d/%d/%d.png";
+ '-', "//%stilma.mysociety.org/bromley/%d/%d/%d.png";
}
1;