1
0
Fork 0

Merge pull request #1098 from Beanow/release/profile-editor-improvements

Profile editor improvements
This commit is contained in:
Tobias Diekershoff 2014-09-05 22:20:31 +02:00
commit 7eef05e4f5
2 changed files with 36 additions and 8 deletions

View 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
));
}