aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Alert.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Alert.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm
index f88e57d1a..3a968ee1d 100644
--- a/perllib/FixMyStreet/App/Controller/Alert.pm
+++ b/perllib/FixMyStreet/App/Controller/Alert.pm
@@ -56,11 +56,9 @@ sub index : Path('') : Args(0) {
# my $cobrand_page = Page::template_include('alert-front-page', $q, Page::template_root($q), %vars);
# $out = $cobrand_page if ($cobrand_page);
#
-# return $out if $q->referer() && $q->referer() =~ /fixmystreet\.com/;
-# my $recent_photos = Cobrand::recent_photos($cobrand, 10);
-# $out .= '<div id="alert_recent">' . $q->h2(_('Some photos of recent reports')) . $recent_photos . '</div>' if $recent_photos;
-#
-# return $out;
+ unless ( $c->req->referer && $c->req->referer =~ /fixmystreet\.com/ ) {
+ $c->stash->{photos} = $c->cobrand->recent_photos(10);
+ }
}
sub list : Path('list') : Args(0) {