aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Reports.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-02-09 14:59:18 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-02-09 14:59:18 +0000
commit6c718aa2e1d3fdbf9f94982a3f95ef5b5495e667 (patch)
treedaa95997ff52c3fdf9313c5893fcfaab8cc781d4 /perllib/FixMyStreet/Script/Reports.pm
parentc7ddf0cfa97601bfb1da63a977bca68ed3da0583 (diff)
parent9a4b74df50886a5eb79ae53434200b14a1d36a19 (diff)
Merge remote-tracking branch 'mysociety/add-osm-link-to-email'
Diffstat (limited to 'perllib/FixMyStreet/Script/Reports.pm')
-rw-r--r--perllib/FixMyStreet/Script/Reports.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Script/Reports.pm b/perllib/FixMyStreet/Script/Reports.pm
index 55b1bb21c..d26e0fa70 100644
--- a/perllib/FixMyStreet/Script/Reports.pm
+++ b/perllib/FixMyStreet/Script/Reports.pm
@@ -7,6 +7,7 @@ use CronFns;
use DateTime::Format::Pg;
use Utils;
+use Utils::OpenStreetMap;
use mySociety::MaPit;
use FixMyStreet;
@@ -91,8 +92,10 @@ sub send(;$) {
: _('The user could not locate the problem on a map, but to see the area around the location they entered');
$h{closest_address} = '';
+ $h{osm_url} = Utils::OpenStreetMap::short_url($h{latitude}, $h{longitude});
if ( $row->used_map ) {
$h{closest_address} = $cobrand->find_closest( $h{latitude}, $h{longitude}, $row );
+ $h{osm_url} .= '?m';
}
if ( $cobrand->allow_anonymous_reports &&