diff --git a/mod/profile.php b/mod/profile.php index b63ec72508..07c5357ff8 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -57,7 +57,12 @@ function profile_init(&$a) { unset($_SESSION['authenticated']); } - profile_load($a,$which); + $profile = 0; + if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) { + $which = $a->user['nickname']; + $profile = $a->argv[1]; + } + profile_load($a,$which,$profile); $a->page['htmlhead'] .= "get_baseurl() . "/profile/%s" . "\" />\r\n"; $dfrn_pages = array('request', 'confirm', 'notify', 'poll'); diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl index 20b9a0993e..44ca3922b8 100644 --- a/view/profile_edit.tpl +++ b/view/profile_edit.tpl @@ -1,8 +1,14 @@