aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-08-31 18:25:12 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-08-31 18:25:12 +0100
commitd4a81832c716bdbd33c26f47b5d8baae582ef418 (patch)
tree83b1d7a7f6d383537b273a3f4831a59dd144f9df
parent0b5f902416b4c61742a303eefaccde51ab71077b (diff)
Decode example places from config file, to fix #317.
-rw-r--r--perllib/FixMyStreet/Cobrand/Default.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm
index 04265963a..8d0b5ab50 100644
--- a/perllib/FixMyStreet/Cobrand/Default.pm
+++ b/perllib/FixMyStreet/Cobrand/Default.pm
@@ -4,6 +4,7 @@ use base 'FixMyStreet::Cobrand::Base';
use strict;
use warnings;
use FixMyStreet;
+use Encode;
use URI;
use Digest::MD5 qw(md5_hex);
@@ -647,7 +648,9 @@ sub get_report_stats { return 0; }
sub get_council_sender { return 'Email' };
sub example_places {
- return FixMyStreet->config('EXAMPLE_PLACES') || [ 'High Street', 'Main Street' ];
+ my $e = FixMyStreet->config('EXAMPLE_PLACES') || [ 'High Street', 'Main Street' ];
+ $e = [ map { Encode::decode('UTF-8', $_) } @$e ];
+ return $e;
}
sub process_extras {}