From: Stéphane Jacob Date: Sat, 17 Jul 2010 16:06:48 +0000 (+0200) Subject: Updates owner's directory name when profile's name has been updated. X-Git-Tag: xorg/1.0.1~327 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=01525e8ffb7a3f5833f1714dd282ed84573d5e4e;p=platal.git Updates owner's directory name when profile's name has been updated. Signed-off-by: Stéphane Jacob --- diff --git a/include/name.func.inc.php b/include/name.func.inc.php index 2698650..d954263 100644 --- a/include/name.func.inc.php +++ b/include/name.func.inc.php @@ -202,9 +202,9 @@ function set_profile_display(&$display_names, Profile $profile) $owner = $profile->owner(); if ($owner) { XDB::execute('UPDATE accounts - SET full_name = {?} + SET full_name = {?}, directory_name = {?} WHERE uid = {?}', - $display_names['public_name'], $owner->id()); + $display_names['public_name'], $display_names['directory_name'], $owner->id()); } }