aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Model/PhotoSet.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Model/PhotoSet.pm')
-rw-r--r--perllib/FixMyStreet/App/Model/PhotoSet.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perllib/FixMyStreet/App/Model/PhotoSet.pm b/perllib/FixMyStreet/App/Model/PhotoSet.pm
index 58e1a135d..21bde52d8 100644
--- a/perllib/FixMyStreet/App/Model/PhotoSet.pm
+++ b/perllib/FixMyStreet/App/Model/PhotoSet.pm
@@ -16,6 +16,8 @@ use IPC::Cmd qw(can_run);
use IPC::Open3;
use MIME::Base64;
+use FixMyStreet::PhotoStorage;
+
has c => (
is => 'ro',
);
@@ -65,10 +67,7 @@ has storage => (
is => 'ro',
lazy => 1,
default => sub {
- my $class = 'FixMyStreet::PhotoStorage::';
- $class .= FixMyStreet->config('PHOTO_STORAGE_BACKEND') || 'FileSystem';
- eval "use $class";
- return $class->new();
+ return FixMyStreet::PhotoStorage::backend;
}
);