aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-28 17:16:16 -0700
committerfriendica <info@friendica.com>2013-05-28 17:16:16 -0700
commit0daaf35ff8cc863ad95d68302fb14dbcea740374 (patch)
tree8af0d6c4b2836e4b38bb831b592b661ca26c05c9 /mod/channel.php
parent6bb35832674e35aa4505cd636b6f42c6d0a1a7f4 (diff)
downloadvolse-hubzilla-0daaf35ff8cc863ad95d68302fb14dbcea740374.tar.gz
volse-hubzilla-0daaf35ff8cc863ad95d68302fb14dbcea740374.tar.bz2
volse-hubzilla-0daaf35ff8cc863ad95d68302fb14dbcea740374.zip
fix location setting stuff
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/channel.php b/mod/channel.php
index ff6f1f309..1442070a9 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -118,9 +118,8 @@ function channel_content(&$a, $update = 0, $load = false) {
$x = array(
'is_owner' => $is_owner,
-// FIXME
- 'allow_location' => ((($is_owner || $observer) && $a->profile['allow_location']) ? true : false),
- 'default_location' => (($is_owner) ? $a->profile['default_location'] : ''),
+ 'allow_location' => ((($is_owner || $observer) && (intval(get_pconfig($a->profile['profile_uid'],'system','use_browser_location')))) ? true : false),
+ 'default_location' => (($is_owner) ? $a->profile['channel_location'] : ''),
'nickname' => $a->profile['channel_address'],
'lockstate' => (((strlen($a->profile['channel_allow_cid'])) || (strlen($a->profile['channel_allow_gid'])) || (strlen($a->profile['channel_deny_cid'])) || (strlen($a->profile['channel_deny_gid']))) ? 'lock' : 'unlock'),
'acl' => (($is_owner) ? populate_acl($channel, false) : ''),