aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-05 21:39:55 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-05 21:39:55 -0700
commit6817c5d59ad578370a2b60dbdcdba16e43dbac65 (patch)
tree3c24b1b920273fcd57455c6ab73a16650772be01 /mod/settings.php
parent3713a9291cfb5d9fad160abd8f4a167693171998 (diff)
downloadvolse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.tar.gz
volse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.tar.bz2
volse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.zip
lots of work, 2way friends, comments...
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/settings.php b/mod/settings.php
index de1133faf..861be7946 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -119,6 +119,18 @@ function settings_post(&$a) {
// FIXME - set to un-verified, blocked and redirect to logout
}
+ if($nick_changed) {
+ $r = q ("UPDATE `profile` SET `url` = '%s', `request` = '%s', `notify` = '%s', `poll` = '%s', `confirm` = '%s'
+ WHERE `uid` = %d AND `self` = 1 LIMIT 1",
+ dbesc( $a->get_baseurl() . '/profile/' . $nick ),
+ dbesc( $a->get_baseurl() . '/dfrn_request/' . $nick ),
+ dbesc( $a->get_baseurl() . '/dfrn_notify/' . $nick ),
+ dbesc( $a->get_baseurl() . '/dfrn_poll/' . $nick ),
+ dbesc( $a->get_baseurl() . '/dfrn_confirm/' . $nick ),
+ intval($_SESSION['uid'])
+ );
+ }
+
// Refresh the content display with new data