projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo
[platal.git]
/
modules
/
axletter.php
diff --git
a/modules/axletter.php
b/modules/axletter.php
index
0392173
..
a664705
100644
(file)
--- a/
modules/axletter.php
+++ b/
modules/axletter.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-20
09
Polytechnique.org *
+ * Copyright (C) 2003-20
10
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-180,7
+180,7
@@
class AXLetterModule extends PLModule
. "https://www.polytechnique.org/ax/edit\n"
. "-- \n"
. "Association Polytechnique.org\n");
. "https://www.polytechnique.org/ax/edit\n"
. "-- \n"
. "Association Polytechnique.org\n");
- $users = User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT u
ser_
id
+ $users = User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT uid
FROM axletter_rights'));
foreach ($users as $user) {
$mailer->addTo($user);
FROM axletter_rights'));
foreach ($users as $user) {
$mailer->addTo($user);
@@
-315,13
+315,13
@@
class AXLetterModule extends PLModule
}
$page->changeTpl('axletter/admin.tpl');
}
$page->changeTpl('axletter/admin.tpl');
- $page->assign('admins', User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT u
ser_
id
+ $page->assign('admins', User::getBulkUsersWithUIDs(XDB::fetchColumn('SELECT uid
FROM axletter_rights')));
$importer = new CSVImporter('axletter_ins');
FROM axletter_rights')));
$importer = new CSVImporter('axletter_ins');
- $importer->registerFunction('u
ser_
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->forceValue('hash', array($this, 'createHash'));
- $importer->apply($page, "admin/axletter", array('u
ser_
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)
}
function idFromMail($line, $key, $relation = null)