]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use passed-in lat long in geocode.php
authorEvan Prodromou <evan@status.net>
Sat, 30 Jan 2010 17:43:00 +0000 (12:43 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 30 Jan 2010 17:43:00 +0000 (12:43 -0500)
Don't rewrite the lat-long for a location in geocode.php.

actions/geocode.php

index 9671d2c2769f4feb615688dadf37634e1c06d3d0..7fd696baf9ef32c804a73f7187a7179700ac6a92 100644 (file)
@@ -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;
     }