diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-10 17:08:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-08-10 17:08:41 +0100 |
commit | 4faf6b08b07bf450d87db10df786f2b7ff8a802c (patch) | |
tree | a3c0f7de00a73c5fce730461c3faac477a26327e /perllib/FixMyStreet/App | |
parent | 5d2426e0ca4dfee5f85fd5857f0db3276ed6d6c8 (diff) | |
parent | 6f6fc8b2d15b253bd455661a38d41ece11a547c0 (diff) |
Merge branch '1474-absolutely-fabulous'
Diffstat (limited to 'perllib/FixMyStreet/App')
-rw-r--r-- | perllib/FixMyStreet/App/Model/PhotoSet.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Model/PhotoSet.pm b/perllib/FixMyStreet/App/Model/PhotoSet.pm index 487786a3b..46e1fb630 100644 --- a/perllib/FixMyStreet/App/Model/PhotoSet.pm +++ b/perllib/FixMyStreet/App/Model/PhotoSet.pm @@ -68,7 +68,7 @@ has upload_dir => ( lazy => 1, default => sub { my $self = shift; - my $cache_dir = path( FixMyStreet->config('UPLOAD_DIR') ); + 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'"; |