Merge branch 'xorg/1.0.2/master'
[platal.git] / include / validations / names.inc.php
index 712f4e1..5d9affe 100644 (file)
@@ -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;