X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fprofile_advanced.php;h=05fd56d023f9d7a8b06df2f44f779cf042e17ca6;hb=cbe4e2bf8c7b6fea2e700811a15b427e6141c9dd;hp=8dfb1beecc3744d2661efb34dddb490cf01619f8;hpb=c464bc494c51bd871c2cf01a441ea2c4f8defc65;p=friendica.git diff --git a/include/profile_advanced.php b/include/profile_advanced.php index 8dfb1beecc..05fd56d023 100644 --- a/include/profile_advanced.php +++ b/include/profile_advanced.php @@ -79,10 +79,13 @@ function advanced_profile(&$a) { if($txt = prepare_text($a->profile['work'])) $profile['work'] = array( t('Work/employment:'), $txt); if($txt = prepare_text($a->profile['education'])) $profile['education'] = array( t('School/education:'), $txt ); - + + if ($a->profile['uid'] == local_user()) + $profile['edit'] = array($a->get_baseurl(). '/profiles/'.$a->profile['id'], t('Edit profile'),"", t('Edit profile')); + return replace_macros($tpl, array( - '$title' => t('Profile'), - '$profile' => $profile, + '$title' => t('Profile'), + '$profile' => $profile )); }