// TRANS: Checkbox label in form for profile settings.
$this->checkbox('sharelocation', _('Share my current location when posting notices'),
($this->arg('sharelocation')) ?
- $this->arg('sharelocation') : $user->shareLocation());
+ $this->arg('sharelocation') : $this->scoped->shareLocation());
$this->elementEnd('li');
}
Event::handle('EndProfileFormData', array($this));
$exists = false;
- $prefs = User_location_prefs::staticGet('user_id', $user->id);
+ $prefs = User_location_prefs::getKV('user_id', $user->id);
if (empty($prefs)) {
$prefs = new User_location_prefs();
function nicknameExists($nickname)
{
$user = common_current_user();
- $other = User::staticGet('nickname', $nickname);
+ $other = User::getKV('nickname', $nickname);
if (!$other) {
return false;
} else {