X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=609c2002a929e19dc9d6f8ea659087010d97b44c;hb=3d86f47bbd036226e675da419aa125f77c5b081f;hp=6db4de3d952bc246d829fc445b0d761ae6de0f98;hpb=c273adf0fe21f9e675ba0598ba6b748ad0b41517;p=friendica.git diff --git a/boot.php b/boot.php index 6db4de3d95..609c2002a9 100644 --- a/boot.php +++ b/boot.php @@ -12,7 +12,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '3.1.1610' ); +define ( 'FRIENDICA_VERSION', '3.1.1612' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DB_UPDATE_VERSION', 1159 ); @@ -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,