From: Fabrixxm Date: Wed, 23 Jan 2013 14:58:30 +0000 (-0500) Subject: profile_vcard: add correct menu for profile editing when multiple profiles are disabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8eb781994bd53451cfea95b2632c22ced8543e32;p=friendica.git profile_vcard: add correct menu for profile editing when multiple profiles are disabled --- diff --git a/boot.php b/boot.php index 188c1b34ab..accaf1d0c5 100644 --- a/boot.php +++ b/boot.php @@ -1364,9 +1364,15 @@ if(! function_exists('profile_sidebar')) { } - - } + if ($profile['uid'] == local_user() && !feature_enabled(local_user(),'multi_profiles')) { + $profile['edit'] = array($a->get_baseurl(). '/profiles/'.$profile['id'], t('Edit profile'),"", t('Edit profile')); + $profile['menu'] = array( + 'chg_photo' => t('Change profile photo'), + 'cr_new' => null, + 'entries' => array(), + ); + } @@ -1419,6 +1425,7 @@ if(! function_exists('profile_sidebar')) { if($a->theme['template_engine'] === 'internal') $location = template_escape($location); + $tpl = get_markup_template('profile_vcard.tpl'); $o .= replace_macros($tpl, array( '$profile' => $p,