remove namespace setting from location; it's unused

This commit is contained in:
Evan Prodromou
2009-12-28 14:21:07 -08:00
parent 33786b2c4e
commit c1e3b2f032
4 changed files with 46 additions and 20 deletions

View File

@@ -996,4 +996,20 @@ class User extends Memcached_DataObject
return $ids;
}
function shareLocation()
{
$share = true;
$prefs = User_location_prefs::staticGet('user_id', $this->id);
if (empty($prefs)) {
$share = common_config('location', 'share');
} else {
$share = $prefs->share_location;
$prefs->free();
}
return $share;
}
}