mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
Don't show links to edit alternate profiles if multi_profiles is disabled
This commit is contained in:
parent
8e034a3b6b
commit
2444a3f9d9
1 changed files with 4 additions and 1 deletions
|
@ -856,7 +856,8 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|
|||
);
|
||||
|
||||
|
||||
if(feature_enabled(local_user(),'multi_profiles')) {
|
||||
$multi_profiles = feature_enabled(local_user(), 'multi_profiles');
|
||||
if($multi_profiles) {
|
||||
$profile['edit'] = array($a->get_baseurl(). '/profiles', t('Profiles'),"", t('Manage/edit profiles'));
|
||||
$profile['menu']['cr_new'] = t('Create New Profile');
|
||||
}
|
||||
|
@ -869,6 +870,8 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|
|||
|
||||
if($r) {
|
||||
foreach($r as $rr) {
|
||||
if(!($multi_profiles || $rr['is_default']))
|
||||
continue;
|
||||
$profile['menu']['entries'][] = array(
|
||||
'photo' => $rr['thumb'],
|
||||
'id' => $rr['id'],
|
||||
|
|
Loading…
Reference in a new issue