diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-09 13:12:02 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-09 13:12:02 +0100 |
commit | d3db27275ccecfe196fc9036f03288a3e5d675e3 (patch) | |
tree | d13d6de6905e5c5de23f52e9a50d02954871f22d /perllib/FixMyStreet/App/Controller/Alert.pm | |
parent | 717a87caaeab4d76f30359360be9c620edab0abb (diff) |
moved short_name to cobrands
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Alert.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Alert.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm index c1b164a7c..b1856b22c 100644 --- a/perllib/FixMyStreet/App/Controller/Alert.pm +++ b/perllib/FixMyStreet/App/Controller/Alert.pm @@ -317,11 +317,11 @@ sub generate_council_and_ward_options : Private { foreach (values %{ $c->stash->{all_councils} }) { if ($councils{$_->{type}}) { $council = $_; - $council->{short_name} = Page::short_name( $council ); + $council->{short_name} = $c->cobrand->short_name( $council ); ( $council->{id_name} = $council->{short_name} ) =~ tr/+/_/; } else { $ward = $_; - $ward->{short_name} = Page::short_name( $ward ); + $ward->{short_name} = $c->cobrand->short_name( $ward ); ( $ward->{id_name} = $ward->{short_name} ) =~ tr/+/_/; } } |