projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/fusionax' into account
[platal.git]
/
include
/
validations.inc.php
diff --git
a/include/validations.inc.php
b/include/validations.inc.php
index
97e1b15
..
3ab4f0f
100644
(file)
--- a/
include/validations.inc.php
+++ b/
include/validations.inc.php
@@
-85,10
+85,7
@@
abstract class Validate
$this->stamp = date('YmdHis');
$this->unique = $_unique;
$this->type = $_type;
$this->stamp = date('YmdHis');
$this->unique = $_unique;
$this->type = $_type;
- $res = XDB::query("SELECT promo_display AS promo
- FROM profile_display
- WHERE uid={?}", $_uid);
- $this->promo = $res->fetchOneCell();
+ $this->promo = $this->user->promo();
}
// }}}
}
// }}}
@@
-187,7
+184,7
@@
abstract class Validate
$mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}");
$mailer->addTo($globals->core->admin_email);
$mailer->setFrom("validation+{$this->type}@{$globals->mail->domain}");
$mailer->addTo($globals->core->admin_email);
- $body = "Validation {$this->type} pour {$this->user->
id
()}\n\n"
+ $body = "Validation {$this->type} pour {$this->user->
login
()}\n\n"
. S::user()->login() . " a ajouté le commentaire :\n\n"
. Env::v('comm') . "\n\n"
. "cf la discussion sur : " . $globals->baseurl . "/admin/validate";
. S::user()->login() . " a ajouté le commentaire :\n\n"
. Env::v('comm') . "\n\n"
. "cf la discussion sur : " . $globals->baseurl . "/admin/validate";