aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-28 21:02:36 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-28 21:02:36 -0700
commitd8d6f9adbd8a88d5db77dbdee07d7210651620bc (patch)
tree174c8be2bc838f88dc1e8ac61b448ee095389bb3 /mod
parent8aeb1976b86674d6072c587b213131e253365ad5 (diff)
downloadvolse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.tar.gz
volse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.tar.bz2
volse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.zip
profile editor cleanups
Diffstat (limited to 'mod')
-rw-r--r--mod/profile.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php
index b63ec7250..07c5357ff 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'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');