aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-05-13 12:28:18 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-05-13 12:39:19 +0100
commitd290d52f48a167131cab3bdc6844888ed824d7fe (patch)
tree6bdb06fd9d5328a8c0a7ef22f11cb869c46652e9 /perllib/FixMyStreet/App/Controller/Open311.pm
parente0f04654af67eb27ac8e5876a4b39d0cde43f3cb (diff)
Consolidate photo display checking to one function.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Open311.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm
index a4e72e9bd..b336a44f0 100644
--- a/perllib/FixMyStreet/App/Controller/Open311.pm
+++ b/perllib/FixMyStreet/App/Controller/Open311.pm
@@ -272,7 +272,7 @@ sub output_requests : Private {
$request->{'comment_count'} = [ $updates ];
}
- my $display_photos = $c->cobrand->allow_photo_display;
+ my $display_photos = $c->cobrand->allow_photo_display($problem);
if ($display_photos && $problem->photo) {
my $url = $c->cobrand->base_url();
my $imgurl = $url . "/photo/$id.full.jpeg";