X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister.php;h=22a206e99794cdf486bdc3d7a6c2b7f3d7b1269e;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=e2810cbed95d91e97239183c6dee2259ec06892a;hpb=4b0cf4e453902b1a6529c5e3309f6d3927f3f4d1;p=platal.git diff --git a/modules/register.php b/modules/register.php index e2810cb..22a206e 100644 --- a/modules/register.php +++ b/modules/register.php @@ -49,8 +49,6 @@ class RegisterModule extends PLModule } if ($hash) { - require_once 'directory.enums.inc.php'; - $nameTypes = DirEnum::getOptions(DirEnum::NAMETYPES); $nameTypes = array_flip($nameTypes); $res = XDB::query("SELECT a.uid, pd.promo, pnl.name AS lastname, pnf.name AS firstname, p.xorg_id AS xorgid, @@ -270,7 +268,6 @@ class RegisterModule extends PLModule return PL_FORBIDDEN; } - require_once 'directory.enums.inc.php'; $nameTypes = DirEnum::getOptions(DirEnum::NAMETYPES); $nameTypes = array_flip($nameTypes); @@ -398,7 +395,7 @@ class RegisterModule extends PLModule $mymail->send(); // Index the user, to allow her to appear in searches. - Profile::rebuildSearchTokens($uid); + Profile::rebuildSearchTokens($pid); // Notify other users which were watching for her arrival. XDB::execute('REPLACE INTO contacts (uid, contact)