aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/My.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-13 10:58:07 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-21 17:37:47 +0100
commitef9850616c71d82980bdf77e001267a89337e1a8 (patch)
tree22ea4291b7f374589ba75a173027704f5bc0b599 /perllib/FixMyStreet/App/Controller/My.pm
parent17ebb70ee0e1d0452b824d3d8daee7405f5edf5c (diff)
Refactor map pin/feature functions.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/My.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm
index 659d62c0b..72391fee2 100644
--- a/perllib/FixMyStreet/App/Controller/My.pm
+++ b/perllib/FixMyStreet/App/Controller/My.pm
@@ -52,14 +52,7 @@ sub my : Path : Args(0) {
while ( my $problem = $rs->next ) {
$c->stash->{has_content}++;
- push @$pins, {
- latitude => $problem->latitude,
- longitude => $problem->longitude,
- colour => $c->cobrand->pin_colour( $problem, 'my' ),
- id => $problem->id,
- title => $problem->title,
- problem => $problem,
- };
+ push @$pins, $problem->pin_data($c, 'my', private => 1);
push @$problems, $problem;
}
$c->stash->{problems_pager} = $rs->pager;