1
1
Fork 0

profile editor cleanups

This commit is contained in:
Mike Macgirvin 2010-07-28 21:02:36 -07:00
commit d8d6f9adbd
3 changed files with 25 additions and 7 deletions

View file

@ -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'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');