- if (XDB::execute("INSERT INTO evenements
- SET user_id = {?}, creation_date=NOW(), titre={?}, texte={?},
- peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide,wiki')",
- $this->uid, $this->titre, $this->texte,
- $this->peremption, $this->pmin, $this->pmax)) {
+ /* TODO: refines this filter on promotions by using userfilter. */
+ if (XDB::execute("INSERT INTO announces
+ SET uid = {?}, creation_date=NOW(), titre={?}, texte={?},
+ expiration={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide,wiki')",
+ $this->user->id(), $this->titre, $this->texte,
+ $this->expiration, $this->pmin, $this->pmax)) {