summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-30 12:43:00 -0500
committerEvan Prodromou <evan@status.net>2010-01-30 12:43:00 -0500
commit1b7cc3393a6a039d4adcf955b3a79fe3c5cc6f47 (patch)
treeac4c388730e3966d3b2b5a232531709404dcdb26
parenta1c9874a6119774a16917a631a7bb63f73a16ba1 (diff)
Use passed-in lat long in geocode.php
Don't rewrite the lat-long for a location in geocode.php.
-rw-r--r--actions/geocode.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/actions/geocode.php b/actions/geocode.php
index 9671d2c27..7fd696baf 100644
--- a/actions/geocode.php
+++ b/actions/geocode.php
@@ -52,12 +52,7 @@ class GeocodeAction extends Action
}
$this->lat = $this->trimmed('lat');
$this->lon = $this->trimmed('lon');
- $location = Location::fromLatLon($this->lat, $this->lon);
- if ($location) {
- $this->location = Location::fromId($location->location_id, $location->location_ns);
- $this->lat = $this->location->lat;
- $this->lon = $this->location->lon;
- }
+ $this->location = Location::fromLatLon($this->lat, $this->lon);
return true;
}