From 034038849cfa710f8b65bc5ab0121cc4865b8b28 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 28 Nov 2011 19:28:33 -0800 Subject: mysql error report fix (no mysqli), suggested friends for new members settings --- mod/settings.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mod/settings.php') 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, -- cgit v1.2.3