X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Fevts.inc.php;h=ed22c95eceb26ff28a4553b7ee0f41d767f6727e;hb=da4195dc2315717efe78111ee71f3284034e399d;hp=4a3a0ceee64bbd41473cbb4378658b05e9144e66;hpb=eaf30d86cc99df2414cf4f171a9b0f11b0561e3b;p=platal.git diff --git a/include/validations/evts.inc.php b/include/validations/evts.inc.php index 4a3a0ce..ed22c95 100644 --- a/include/validations/evts.inc.php +++ b/include/validations/evts.inc.php @@ -136,7 +136,7 @@ class EvtReq extends Validate { if (XDB::execute("INSERT INTO evenements SET user_id = {?}, creation_date=NOW(), titre={?}, texte={?}, - peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide')", + peremption={?}, promo_min={?}, promo_max={?}, flags=CONCAT(flags,',valide,wiki')", $this->uid, $this->titre, $this->texte, $this->peremption, $this->pmin, $this->pmax)) { $eid = XDB::insertId(); @@ -151,14 +151,9 @@ class EvtReq extends Validate $forlife = get_user_forlife($this->uid); require_once 'banana/forum.inc.php'; $banana = new ForumsBanana($forlife); - $text = strip_tags($this->texte, '