aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Script/Alerts.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-04-01 10:47:11 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-04-04 17:50:55 +0100
commit98e61f99be442523fdfb38e95d9a8c2132ea0405 (patch)
tree4640cacbaf8392cb7c4df332a3a7bc6b19fb7b47 /perllib/FixMyStreet/Script/Alerts.pm
parent8ca5583e62b1c24128b8d691a8b5f5236ce99eef (diff)
Factor to common FixMyStreet::MapIt call.
Diffstat (limited to 'perllib/FixMyStreet/Script/Alerts.pm')
-rw-r--r--perllib/FixMyStreet/Script/Alerts.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Script/Alerts.pm b/perllib/FixMyStreet/Script/Alerts.pm
index a0c25a8fc..55f4b3db5 100644
--- a/perllib/FixMyStreet/Script/Alerts.pm
+++ b/perllib/FixMyStreet/Script/Alerts.pm
@@ -8,7 +8,7 @@ use IO::String;
use FixMyStreet::Gaze;
use mySociety::Locale;
-use mySociety::MaPit;
+use FixMyStreet::MapIt;
use RABX;
use FixMyStreet::Cobrand;
@@ -186,14 +186,14 @@ sub send() {
$data{report} = $schema->resultset('Problem')->find({ id => $row->{id} });
}
if ($ref eq 'area_problems') {
- my $va_info = mySociety::MaPit::call('area', $row->{alert_parameter});
+ my $va_info = FixMyStreet::MapIt::call('area', $row->{alert_parameter});
$data{area_name} = $va_info->{name};
} elsif ($ref eq 'council_problems' || $ref eq 'ward_problems') {
my $body = FixMyStreet::DB->resultset('Body')->find({ id => $row->{alert_parameter} });
$data{area_name} = $body->name;
}
if ($ref eq 'ward_problems') {
- my $va_info = mySociety::MaPit::call('area', $row->{alert_parameter2});
+ my $va_info = FixMyStreet::MapIt::call('area', $row->{alert_parameter2});
$data{ward_name} = $va_info->{name};
}
}