X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvalidations%2Fevts.inc.php;h=67076a02f199c0bb3a5e0056915eabf2ec5d8581;hb=6876570a57daa0ae5c43cfda0a4edfb039b241c0;hp=ddfdef576c78450faa720340d35982cfbb584d97;hpb=0073747ac81cc9cff9e43847eb008f0e815255f0;p=platal.git diff --git a/include/validations/evts.inc.php b/include/validations/evts.inc.php index ddfdef5..67076a0 100644 --- a/include/validations/evts.inc.php +++ b/include/validations/evts.inc.php @@ -1,6 +1,6 @@ titre = $_titre; @@ -58,7 +58,7 @@ class EvtReq extends Validate // }}} // {{{ function readImage() - private function readImage(PlUpload &$upload) + private function readImage(PlUpload $upload) { if ($upload->exists() && $upload->isType('image')) { list($this->imgx, $this->imgy, $this->imgtype) = $upload->imageInfo(); @@ -134,6 +134,7 @@ class EvtReq extends Validate public function commit() { + /* 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')",