aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@dracos.co.uk>2011-02-10 18:00:50 +0000
committerMatthew Somerville <matthew@dracos.co.uk>2011-02-10 18:00:50 +0000
commit8e6838736d5b70a03c57124bd08ed383079cc737 (patch)
tree9b310844023706af4c98940db35d585bf36b51dc
parent232e48e4b8acd80296daaa03f85ea661fd647625 (diff)
Defining before use probably helpful.
-rwxr-xr-xweb/index.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/index.cgi b/web/index.cgi
index c9ff96a11..400d9e515 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -924,6 +924,11 @@ sub display_location {
}
my $map_links = "<p id='sub_map_links'><a id='hide_pins_link' rel='nofollow' href='$hide_link'>$hide_text</a> | <a id='all_pins_link' rel='nofollow' href='$all_link'>$all_text</a></p> <input type='hidden' id='all_pins' name='all_pins' value='$input_h{all_pins}'>";
+ # truncate the lat,lon for nicer rss urls
+ my ( $short_lat, $short_lon ) =
+ map { Utils::truncate_coordinate($_) } #
+ ( $latitude, $longitude );
+
my $url_skip = NewURL($q, -retain=>1, pc => undef,
x => undef, 'y' => undef,
latitude => $short_lat, longitude => $short_lon,
@@ -931,11 +936,6 @@ sub display_location {
);
my $pc_h = ent($q->param('pc') || '');
- # truncate the lat,lon for nicer rss urls
- my ( $short_lat, $short_lon ) =
- map { Utils::truncate_coordinate($_) } #
- ( $latitude, $longitude );
-
my %vars = (
'map' => FixMyStreet::Map::display_map($q,
latitude => $latitude, longitude => $longitude,