X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fnames.inc.php;h=5d9affee08db595c5be1be2bd3fdf03dd820066f;hb=f8a1899eceabb9648adb85071fab66d49d549337;hp=712f4e16f4a2022668db0742a7dd51178d225f80;hpb=1285cf5413df654ccac839b9d9a32c4df2cee95a;p=platal.git diff --git a/include/validations/names.inc.php b/include/validations/names.inc.php index 712f4e1..5d9affe 100644 --- a/include/validations/names.inc.php +++ b/include/validations/names.inc.php @@ -130,14 +130,14 @@ class NamesReq extends ProfileValidate { require_once 'name.func.inc.php'; - set_profile_display($this->display_names, $this->profile->id()); + set_profile_display($this->display_names, $this->profile); if (!is_null($this->profileOwner)) { set_alias_names($this->sn_new, $this->sn_old, $this->profile->id(), $this->profileOwner->id(), true, $this->new_alias); // Update the local User object, to pick up the new bestalias. - $this->profileOwner = User::getSilent($this->profileOwner->id()); + $this->profileOwner = User::getSilentWithUID($this->profileOwner->id()); } return true;