diff options
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, |