diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-30 21:33:20 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-30 21:33:20 +0100 |
commit | 2444a3f9d9eb3ec45b5a5d337f4a23e0c5a96774 (patch) | |
tree | 59466960d55730ab92f5c7c7156fc597151dd57d /include | |
parent | 8e034a3b6b67a9aaa20fe9db671350e198fe7c42 (diff) | |
download | volse-hubzilla-2444a3f9d9eb3ec45b5a5d337f4a23e0c5a96774.tar.gz volse-hubzilla-2444a3f9d9eb3ec45b5a5d337f4a23e0c5a96774.tar.bz2 volse-hubzilla-2444a3f9d9eb3ec45b5a5d337f4a23e0c5a96774.zip |
Don't show links to edit alternate profiles if multi_profiles is disabled
Diffstat (limited to 'include')
-rw-r--r-- | include/identity.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php index 7ae8e48f6..17238ea99 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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'], |