Moves user_reindex to Profile.
[platal.git] / include / name.func.inc.php
index aef47cd..f1f3f68 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -282,8 +282,7 @@ function set_alias_names(&$sn_new, $sn_old, $update_new = false, $new_alias = nu
                            VALUES  ({?}, 'alias', 'usage', {?})",
                      $new_alias, S::i('uid'));
     }
-    require_once('user.func.inc.php');
-    user_reindex(S::i('uid'));
+    Profile::rebuildSearchTokens(S::i('uid'));
     return $has_new;
 }