summaryrefslogtreecommitdiff
path: root/classes/User.php
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 14:21:07 -0800
commitbb93d6b1c7c697891baca7082261ee694727f161 (patch)
tree03cdb939a0a04d9ef6ef315c306d3dd212f1bb73 /classes/User.php
parentbbf516b96594770c5dc0dea7f9b15937d7c9a237 (diff)
remove namespace setting from location; it's unused
Diffstat (limited to 'classes/User.php')
-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;
+ }
}