From 2f3e39ba15b45b56ef750bd1d15a23c510ec798d Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 26 Oct 2011 16:57:25 -0700 Subject: edit profile quick link --- boot.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 707ca1988..0b03a20c8 100644 --- a/boot.php +++ b/boot.php @@ -823,6 +823,13 @@ function profile_load(&$a, $nickname, $profile = 0) { if(! (x($a->page,'aside'))) $a->page['aside'] = ''; + if(local_user() && local_user() == $a->profile['uid']) { + $a->page['aside'] .= replace_macros(get_markup_template('profile_edlink.tpl'),array( + '$editprofile' => t('Edit profile'), + '$profid' => $a->profile['id'] + )); + } + $block = (((get_config('system','block_public')) && (! local_user()) && (! remote_user())) ? true : false); $a->page['aside'] .= profile_sidebar($a->profile, $block); -- cgit v1.2.3