diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-02-23 16:37:14 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-02-23 18:11:18 +0000 |
commit | 0d0b35dadf3ebf4781e00ae8d83b4061a99cfcc6 (patch) | |
tree | 722afef3118275cc9d952d45e89fbd8e75ba746a /perllib/FixMyStreet/DB/Result/Problem.pm | |
parent | 28144f5153a0a7f7bad9466c883bd5c147568028 (diff) |
Only load images from disk when needed.
Fixes #1337.
Diffstat (limited to 'perllib/FixMyStreet/DB/Result/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/Result/Problem.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/DB/Result/Problem.pm b/perllib/FixMyStreet/DB/Result/Problem.pm index 8f9e76ad6..2a90d0bec 100644 --- a/perllib/FixMyStreet/DB/Result/Problem.pm +++ b/perllib/FixMyStreet/DB/Result/Problem.pm @@ -874,7 +874,7 @@ sub photos { url_fp => "/photo/$id.$i.fp.$format?$cachebust", idx => $i++, } - } map { $_->[0] } $photoset->all_images; + } $photoset->all_ids; return \@photos; } |