aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Model/PhotoSet.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-03-17 15:36:29 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-03-17 15:36:29 +0000
commit6f83e45b8e5093e17cd72ffed2130c33a9aa8ae6 (patch)
treed737b0ec71e45a9f82f93ed698cf8580d92f9627 /perllib/FixMyStreet/App/Model/PhotoSet.pm
parenta4d015e48ae374102bd9b19f9633dda3f6b9ccdd (diff)
parent7c62e5da36f84b156dbbce331da7ca3f7961f27f (diff)
Merge branch 'reduce-the-stats-more'
Diffstat (limited to 'perllib/FixMyStreet/App/Model/PhotoSet.pm')
-rw-r--r--perllib/FixMyStreet/App/Model/PhotoSet.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Model/PhotoSet.pm b/perllib/FixMyStreet/App/Model/PhotoSet.pm
index 04521b5ce..8fcc1700e 100644
--- a/perllib/FixMyStreet/App/Model/PhotoSet.pm
+++ b/perllib/FixMyStreet/App/Model/PhotoSet.pm
@@ -67,14 +67,7 @@ has upload_dir => (
is => 'ro',
lazy => 1,
default => sub {
- my $self = shift;
- my $cache_dir = path(FixMyStreet->config('UPLOAD_DIR'))->absolute(FixMyStreet->path_to());
- $cache_dir->mkpath;
- unless ( -d $cache_dir && -w $cache_dir ) {
- warn "Can't find/write to photo cache directory '$cache_dir'";
- return;
- }
- $cache_dir;
+ path(FixMyStreet->config('UPLOAD_DIR'))->absolute(FixMyStreet->path_to());
},
);