X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations.inc.php;h=d72ec3d3a1a131709dc13ed906381999674e950b;hb=4b239f6e6cb26cdd814b42f3efcbcae40fa862a4;hp=a8f45f7eb3a4400f46013e31b00f219ecd0edeb5;hpb=33b47675b5597652fb4c3b770401c58803d2a0cc;p=platal.git diff --git a/include/validations.inc.php b/include/validations.inc.php index a8f45f7..d72ec3d 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -85,6 +85,10 @@ abstract class Validate $this->stamp = date('YmdHis'); $this->unique = $_unique; $this->type = $_type; + $res = XDB::query("SELECT promo_display AS promo + FROM profile_display + WHERE uid={?}", $this->user->id()); + $this->promo = $res->fetchOneCell(); } // }}} @@ -183,7 +187,7 @@ abstract class Validate $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";