X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fhomonymes.inc.php;h=f483bb66d178cdd90e010b91f987cf9961bdb2fa;hb=fb813fb52d5ab65ca9a5b92b5cb9089523380d79;hp=44f0234311b42b3e0fdcb2e513046efe89c1da3f;hpb=805f3d1679a53bb04fff34619c171a1381068612;p=platal.git diff --git a/include/validations/homonymes.inc.php b/include/validations/homonymes.inc.php index 44f0234..f483bb6 100644 --- a/include/validations/homonymes.inc.php +++ b/include/validations/homonymes.inc.php @@ -1,6 +1,6 @@ user->id(), $this->loginbis); + Platal::load('admin', 'homonyms.inc.php'); + switch_bestalias($this->user, $this->loginbis); if (!$this->warning) { XDB::execute("UPDATE aliases SET type = 'homonyme', expire = NOW() WHERE alias = {?}", $this->loginbis); XDB::execute("REPLACE INTO homonymes (homonyme_id, user_id) VALUES({?}, {?})", $this->user->id(), $this->user->id());