]> git.mxchange.org Git - friendica.git/blobdiff - include/profile_advanced.php
Merge pull request #1518 from tugelbend/develop
[friendica.git] / include / profile_advanced.php
index 8dfb1beecc3744d2661efb34dddb490cf01619f8..05fd56d023f9d7a8b06df2f44f779cf042e17ca6 100644 (file)
@@ -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
         ));
     }