projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporarily fixes promo in xnet announces.
[platal.git]
/
include
/
validations
/
homonymes.inc.php
diff --git
a/include/validations/homonymes.inc.php
b/include/validations/homonymes.inc.php
index
10663c5
..
7144c91
100644
(file)
--- a/
include/validations/homonymes.inc.php
+++ b/
include/validations/homonymes.inc.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 *
@@
-32,7
+32,7
@@
class HomonymeReq extends Validate
public $homonymes_hruid;
public $homonymes_hruid;
- public $rules = "Accepter, sauf cas particulier d'utilisateur dont l'homonymie est traité plus
... manuellement
";
+ public $rules = "Accepter, sauf cas particulier d'utilisateur dont l'homonymie est traité plus
… manuellement.
";
// }}}
// {{{ constructor
// }}}
// {{{ constructor
@@
-121,12
+121,11
@@
est ambigu pour des raisons d'homonymie et signalera ton email exact.";
public function commit()
{
public function commit()
{
- require_once('homonymes.inc.php');
-
- switch_bestalias($this->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);
if (!$this->warning) {
XDB::execute("UPDATE aliases SET type = 'homonyme', expire = NOW() WHERE alias = {?}", $this->loginbis);
- XDB::execute("REPLACE INTO homonym
es (homonyme_id, user_
id) VALUES({?}, {?})", $this->user->id(), $this->user->id());
+ XDB::execute("REPLACE INTO homonym
s (homonyme_id, u
id) VALUES({?}, {?})", $this->user->id(), $this->user->id());
}
return true;
}
return true;