update location while registering
This commit is contained in:
parent
9608cc6143
commit
943b2bea09
|
@ -198,6 +198,15 @@ class User extends Memcached_DataObject
|
|||
}
|
||||
if (!empty($location)) {
|
||||
$profile->location = $location;
|
||||
|
||||
$loc = Location::fromName($location);
|
||||
|
||||
if (!empty($loc)) {
|
||||
$profile->lat = $loc->lat;
|
||||
$profile->lon = $loc->lon;
|
||||
$profile->location_id = $loc->location_id;
|
||||
$profile->location_ns = $loc->location_ns;
|
||||
}
|
||||
}
|
||||
|
||||
$profile->created = common_sql_now();
|
||||
|
|
Loading…
Reference in New Issue
Block a user