aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-28 18:01:16 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-28 18:01:16 +0100
commita428c23753694794f3b1bddace94e869c2d7550f (patch)
tree942edc1bd2ef820997a42a31b825800243654155 /perllib/FixMyStreet/App/Controller/Report.pm
parent101cfc70b05960cd0fdd40580e0f45563ea7b58f (diff)
parent43ccfa5285842287ef6fd53c6ca97d58e690c7fa (diff)
Merge branch '1205-hardcoded-site-name'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 315a5436c..279994e47 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -112,10 +112,9 @@ sub load_problem_or_display_error : Private {
);
} elsif ( $problem->non_public ) {
if ( !$c->user || $c->user->id != $problem->user->id ) {
- my $site_name = Utils::trim_text($c->render_fragment('site-name.html'));
$c->detach(
'/page_error_403_access_denied',
- [ sprintf(_('That report cannot be viewed on %s.'), $site_name) ] #
+ [ sprintf(_('That report cannot be viewed on %s.'), $c->stash->{site_name}) ]
);
}
}