Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git] / include / validations / names.inc.php
index 2893d65..f39f139 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -137,7 +137,7 @@ class NamesReq extends ProfileValidate
                             $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;