aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/PhotoStorage/FileSystem.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/PhotoStorage/FileSystem.pm')
-rw-r--r--perllib/FixMyStreet/PhotoStorage/FileSystem.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/PhotoStorage/FileSystem.pm b/perllib/FixMyStreet/PhotoStorage/FileSystem.pm
index d61a26c7a..772286d53 100644
--- a/perllib/FixMyStreet/PhotoStorage/FileSystem.pm
+++ b/perllib/FixMyStreet/PhotoStorage/FileSystem.pm
@@ -10,8 +10,8 @@ has upload_dir => (
is => 'ro',
lazy => 1,
default => sub {
- my $dir = FixMyStreet->config('PHOTO_STORAGE_OPTIONS')->{UPLOAD_DIR} ||
- FixMyStreet->config('UPLOAD_DIR');
+ my $cfg = FixMyStreet->config('PHOTO_STORAGE_OPTIONS');
+ my $dir = $cfg ? $cfg->{UPLOAD_DIR} : FixMyStreet->config('UPLOAD_DIR');
return path($dir)->absolute(FixMyStreet->path_to());
},
);