X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Faxletter.php;h=a6647056bcc92ab3183be54da059e020539bbcf7;hb=330ffaa012073e66a5c94a6dce3ef5c8e32f67b8;hp=0392173567a4e756928d5805add1306fff2db3c2;hpb=353f2d2b11c4e3c6c0bc3553813368b6f42fa9c6;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 0392173..a664705 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -1,6 +1,6 @@ addTo($user); @@ -315,13 +315,13 @@ class AXLetterModule extends PLModule } $page->changeTpl('axletter/admin.tpl'); - $page->assign('admins', User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT user_id + $page->assign('admins', User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT uid FROM axletter_rights'))); $importer = new CSVImporter('axletter_ins'); - $importer->registerFunction('user_id', 'email vers Id X.org', array($this, 'idFromMail')); + $importer->registerFunction('uid', 'email vers Id X.org', array($this, 'idFromMail')); $importer->forceValue('hash', array($this, 'createHash')); - $importer->apply($page, "admin/axletter", array('user_id', 'email', 'prenom', 'nom', 'promo', 'flag', 'hash')); + $importer->apply($page, "admin/axletter", array('uid', 'email', 'prenom', 'nom', 'promo', 'flag', 'hash')); } function idFromMail($line, $key, $relation = null)