mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 07:35:14 +00:00
Merge pull request #796 from pafcu/profeditfix
Don't show links to edit alternate profiles if multi_profiles is disable...
This commit is contained in:
commit
009b05b3b6
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