diff options
author | friendica <info@friendica.com> | 2013-07-29 05:37:05 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-29 05:37:05 -0700 |
commit | ca5abc02473b88a04479b4d95c06a29885f53f02 (patch) | |
tree | 641fc58d823faed159744487fdd07cc51f1cd763 /mod | |
parent | 6295dff409dcf376bad057cd5063a02268769486 (diff) | |
download | volse-hubzilla-ca5abc02473b88a04479b4d95c06a29885f53f02.tar.gz volse-hubzilla-ca5abc02473b88a04479b4d95c06a29885f53f02.tar.bz2 volse-hubzilla-ca5abc02473b88a04479b4d95c06a29885f53f02.zip |
load_pconfig had some issues when given a family
Diffstat (limited to 'mod')
-rw-r--r-- | mod/settings.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php index 943a3cc13..0cca41810 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -336,6 +336,7 @@ function settings_post(&$a) { $expire_network_only = ((x($_POST,'expire_network_only'))? intval($_POST['expire_network_only']) : 0); $allow_location = (((x($_POST,'allow_location')) && (intval($_POST['allow_location']) == 1)) ? 1: 0); + $publish = (((x($_POST,'profile_in_directory')) && (intval($_POST['profile_in_directory']) == 1)) ? 1: 0); $page_flags = (((x($_POST,'page-flags')) && (intval($_POST['page-flags']))) ? intval($_POST['page-flags']) : 0); $blockwall = (((x($_POST,'blockwall')) && (intval($_POST['blockwall']) == 1)) ? 0: 1); // this setting is inverted! @@ -460,6 +461,7 @@ function settings_post(&$a) { set_pconfig(local_user(),'system','post_profilechange', $post_profilechange); set_pconfig(local_user(),'system','blocktags',$blocktags); + /* if($page_flags == PAGE_PRVGROUP) { $hidewall = 1; @@ -1017,7 +1019,7 @@ function settings_content(&$a) { '$email' => array('email', t('Email Address:'), $email, ''), '$timezone' => array('timezone_select' , t('Your Timezone:'), select_timezone($timezone), ''), '$defloc' => array('defloc', t('Default Post Location:'), $defloc, ''), - '$allowloc' => array('allow_location', t('Use Browser Location:'), intval(get_pconfig(local_user(),'system','use_browser_location')), ''), + '$allowloc' => array('allow_location', t('Use Browser Location:'), ((get_pconfig(local_user(),'system','use_browser_location')) ? 1 : ''), ''), '$h_prv' => t('Security and Privacy Settings'), |