diff options
author | Sarven Capadisli <csarven@status.net> | 2010-01-31 23:42:19 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-01-31 23:42:19 +0100 |
commit | 7558e2fd61c527b31b5a49d29a59b6b0b1d6d542 (patch) | |
tree | 4f71863c12f8b20b261dad09496f65ca872f5712 /actions/geocode.php | |
parent | 4d0ee6a41f3cfb2e99dcb92e7b14f3183393f1a5 (diff) | |
parent | 81087e45c5b797028e90181459e4c673cd7be278 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'actions/geocode.php')
-rw-r--r-- | actions/geocode.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/actions/geocode.php b/actions/geocode.php index 9671d2c27..e883c6ce4 100644 --- a/actions/geocode.php +++ b/actions/geocode.php @@ -42,6 +42,10 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { */ class GeocodeAction extends Action { + var $lat = null; + var $lon = null; + var $location = null; + function prepare($args) { parent::prepare($args); @@ -52,12 +56,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; } @@ -95,4 +94,3 @@ class GeocodeAction extends Action return true; } } -?> |