diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 15:47:19 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-22 15:47:19 +0000 |
commit | f66d61e117468c1a2d40a80ca7749cdedb85d87e (patch) | |
tree | 61d05a3c45e9fd56b2d432da0e701055453a9fd6 | |
parent | e3c8c5d194a7a7dce70152f89c65616c8981c1a3 (diff) |
Move code to where we'll have lat/lon defined.
-rwxr-xr-x | web/alert.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/alert.cgi b/web/alert.cgi index e2a4efaac..17e92fc16 100755 --- a/web/alert.cgi +++ b/web/alert.cgi @@ -90,9 +90,6 @@ sub alert_list { }; } - # truncate the lat,lon for nicer urls - ( $lat, $lon ) = map { Utils::truncate_coordinate($_) } ( $lat, $lon ); - return FixMyStreet::Geocode::list_choices($error, '/alert', $q) if ref($error) eq 'ARRAY'; return alert_front_page($q, $error) if $error; @@ -105,6 +102,9 @@ sub alert_list { $pretty_pc =~ s/ / /; } + # truncate the lat,lon for nicer urls + ( $lat, $lon ) = map { Utils::truncate_coordinate($_) } ( $lat, $lon ); + my $errors = ''; $errors = '<ul class="error"><li>' . join('</li><li>', @errors) . '</li></ul>' if @errors; |