now we cope with usage name changes. the soundex part still remains !
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 12 Apr 2005 14:55:32 +0000 (14:55 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:24 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-533

include/validations/nomusage.inc.php

index a61841a..e0b5a30 100644 (file)
@@ -120,9 +120,8 @@ class UsageReq extends Validate
         if ($r->fetchOneCell() == "") {
             $globals->xdb->execute("UPDATE aliases SET flags = 1 | flags WHERE id = {?} LIMIT 1", $this->uid);
         }
-        $f = fopen("/tmp/flag_recherche","w");
-        fputs($f,"1");
-        fclose($f);
+        require_once 'user.func.inc.php';
+        user_reindex($this->uid);
         return true;
     }