diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-12-02 17:45:03 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-12-02 17:45:03 +0000 |
commit | b6fcd966d204d35c149b2bff91513e732f3101c8 (patch) | |
tree | 75fb01b3910fc4093584bb3b9056e9ea6dbe0eba /perllib/FixMyStreet/App/Model/PhotoSet.pm | |
parent | 8543192128ed15c9bc73e3686ab03324ee5e2b11 (diff) | |
parent | 7b20745945638cce030879eafc8cac8f8bd81c56 (diff) |
Merge branch 'reduce-fixmystreet-app'
Diffstat (limited to 'perllib/FixMyStreet/App/Model/PhotoSet.pm')
-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 b18460821..f1334ff38 100644 --- a/perllib/FixMyStreet/App/Model/PhotoSet.pm +++ b/perllib/FixMyStreet/App/Model/PhotoSet.pm @@ -56,7 +56,7 @@ has upload_dir => ( lazy => 1, default => sub { my $self = shift; - my $cache_dir = path( $self->c->config->{UPLOAD_DIR} ); + my $cache_dir = path( FixMyStreet->config('UPLOAD_DIR') ); $cache_dir->mkpath; unless ( -d $cache_dir && -w $cache_dir ) { warn "Can't find/write to photo cache directory '$cache_dir'"; |