summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-28 14:21:07 -0800
committerEvan Prodromou <evan@status.net>2009-12-28 15:58:05 -0800
commitc1e3b2f032d2a63298d4cde46b8dc17637634750 (patch)
tree03cdb939a0a04d9ef6ef315c306d3dd212f1bb73 /classes
parent33786b2c4e172f9aebf03013c88685f417028bc0 (diff)
remove namespace setting from location; it's unused
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 6708d95b6..2bcb7c2a0 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -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;
+ }
}