*/
public function clean()
{
+ global $globals;
+
if ($this->unique) {
$success = XDB::execute('DELETE FROM requests WHERE user_id={?} AND type={?}',
$this->uid, $this->type);
if ($this->commit()) {
$this->sendmail(true);
$this->clean();
- $this->trigSuccess('Mail de validation envoyé');
+ $this->trigSuccess('Email de validation envoyé');
return true;
} else {
$this->trigError('Erreur lors de la validation');
if (Env::v('comm')) {
$this->sendmail(false);
$this->clean();
- $this->trigSuccess('Mail de refus envoyé');
+ $this->trigSuccess('Email de refus envoyé');
return true;
} else {
$this->trigError('pas de motivation pour le refus !!!');