diff options
author | friendica <info@friendica.com> | 2011-11-28 19:28:33 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-11-28 19:28:33 -0800 |
commit | 034038849cfa710f8b65bc5ab0121cc4865b8b28 (patch) | |
tree | 44e435ea879a27f024863ef6af1a81f25c78e8b9 /mod | |
parent | f4e1135f7962ae06dc529b8d3b9c2f029baa3a73 (diff) | |
download | volse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.tar.gz volse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.tar.bz2 volse-hubzilla-034038849cfa710f8b65bc5ab0121cc4865b8b28.zip |
mysql error report fix (no mysqli), suggested friends for new members settings
Diffstat (limited to 'mod')
-rw-r--r-- | mod/settings.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php index 51db9b06e..3f5e0f2ed 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -614,6 +614,10 @@ function settings_content(&$a) { $expire_photos = get_pconfig(local_user(), 'expire','photos'); $expire_photos = (($expire_photos===false)?0:$expire_photos); // default if not set: 0 + + + $suggestme = get_pconfig(local_user(), 'system','suggestme'); + $suggestme = (($suggestme===false)?0:$suggestme); // default if not set: 0 if(! strlen($a->user['timezone'])) $timezone = date_default_timezone_get(); @@ -689,6 +693,12 @@ function settings_content(&$a) { )); + $suggestme = replace_macros($opt_tpl,array( + '$field' => array('suggestme', t('Allow us to suggest you as a potential friend to new members?'), $suggestme, '', array(t('No'),t('Yes'))), + + )); + + $invisible = (((! $profile['publish']) && (! $profile['net-publish'])) ? true : false); @@ -770,7 +780,7 @@ function settings_content(&$a) { '$permdesc' => t("\x28click to open/close\x29"), '$visibility' => $profile['net-publish'], '$aclselect' => populate_acl($a->user,$celeb), - + '$suggestme' => $suggestme, '$blockwall'=> $blockwall, // array('blockwall', t('Allow friends to post to your profile page:'), !$blockwall, ''), '$blocktags'=> $blocktags, // array('blocktags', t('Allow friends to tag your posts:'), !$blocktags, ''), '$expire' => $expire_arr, |