Fetch alternate bestalias/forlife for user
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 14 Feb 2010 23:01:47 +0000 (00:01 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 14 Feb 2010 23:01:47 +0000 (00:01 +0100)
Use those only for display !!

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/user.php

index d6555af..d346eb3 100644 (file)
@@ -164,7 +164,9 @@ class User extends PlUser
         $uids = array_map(array('XDB', 'escape'), $uids);
         return XDB::iterator('SELECT  a.uid, a.hruid, a.registration_date,
                                       CONCAT(af.alias, \'@' . $globals->mail->domain . '\') AS forlife,
+                                      CONCAT(af.alias, \'@' . $globals->mail->domain2 . '\') AS forlife_alternate,
                                       CONCAT(ab.alias, \'@' . $globals->mail->domain . '\') AS bestalias,
+                                      CONCAT(ab.alias, \'@' . $globals->mail->domain2 . '\') AS bestalias_alternate,
                                       a.full_name, a.display_name, a.sex = \'female\' AS gender,
                                       IF(a.state = \'active\', at.perms, \'\') AS perms,
                                       a.email_format, a.is_admin, a.state, a.type, a.skin,