aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-12 15:28:15 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-12 15:28:15 +0000
commitde6df5e30d4801afc560e93c833a692a117b9547 (patch)
treed66e9958c7e976e779c0e23e88631bd9c5af777d /perllib/FixMyStreet/App/Controller/Admin.pm
parent0715183153048e2bdbf838d6206ae50103d50384 (diff)
Remove most passing of Catalyst to PhotoSet.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index f2d6040ae..c42916acb 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -1498,7 +1498,7 @@ sub rotate_photo : Private {
return unless $direction eq _('Rotate Left') or $direction eq _('Rotate Right');
my $problem = $c->stash->{problem};
- my $fileid = $problem->get_photoset($c)->rotate_image(
+ my $fileid = $problem->get_photoset->rotate_image(
$index,
$direction eq _('Rotate Left') ? -90 : 90
) or return;
@@ -1529,7 +1529,7 @@ sub remove_photo : Private {
if ($keys eq 'ALL') {
$object->photo(undef);
} else {
- my $fileids = $object->get_photoset($c)->remove_images($keys);
+ my $fileids = $object->get_photoset->remove_images($keys);
$object->photo($fileids);
}
return 1;