From 98e61f99be442523fdfb38e95d9a8c2132ea0405 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 1 Apr 2019 10:47:11 +0100 Subject: Factor to common FixMyStreet::MapIt call. --- perllib/FixMyStreet/App/Controller/Admin/Users.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perllib/FixMyStreet/App/Controller/Admin/Users.pm') diff --git a/perllib/FixMyStreet/App/Controller/Admin/Users.pm b/perllib/FixMyStreet/App/Controller/Admin/Users.pm index 11a6d9962..bcbc808ed 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Users.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Users.pm @@ -8,6 +8,7 @@ use POSIX qw(strcoll); use mySociety::EmailUtil qw(is_valid_email); use Text::CSV; +use FixMyStreet::MapIt; use FixMyStreet::SMS; use Utils; @@ -450,7 +451,7 @@ sub user_alert_details : Private { } if (@wards) { - $c->stash->{alert_areas} = mySociety::MaPit::call('areas', join(',', @wards) ); + $c->stash->{alert_areas} = FixMyStreet::MapIt::call('areas', join(',', @wards) ); } my %body_names = map { $_->{id} => $_->{name} } @{ $c->stash->{bodies} }; -- cgit v1.2.3