diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-09-20 15:44:22 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-09-20 15:44:22 +0100 |
commit | 891ce12c012e2c02e8f024f3701ca9ceef5a4bbf (patch) | |
tree | 769c51c48e6427cb5ded45343b2b6abbe3db5e34 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | 3a05b6e399de926decfe732a8bff9f4e80fc39c5 (diff) |
Decode template files read in with read_file, to prevent double encoding (fixes #159). Also fix Welsh I18N test.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index ffbb5a161..1e6a3a088 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -666,7 +666,7 @@ sub process_report : Private { $report->detail( $detail ); # set these straight from the params - $report->category( _ $params{category} ); + $report->category( _ $params{category} ) if $params{category}; my $areas = $c->stash->{all_areas}; $report->areas( ',' . join( ',', sort keys %$areas ) . ',' ); |