X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=29c74e9e70f1fc62ee29b3b31d1239cb2a081d4b;hb=ab694eb5b8b8f0b3e528b7775abae6263cbb824b;hp=33361c0bfd72f0b4ec8c4badb2c592256e3c8560;hpb=0279e18dfb71a1890a8e00a20771f767fadf7a0b;p=platal.git diff --git a/modules/events.php b/modules/events.php index 33361c0..29c74e9 100644 --- a/modules/events.php +++ b/modules/events.php @@ -81,7 +81,7 @@ class EventsModule extends PLModule return $res->fetchOneAssoc(); } - private function upload_image(PlatalPage &$page, PlUpload &$upload) + private function upload_image(PlPage &$page, PlUpload &$upload) { if (@!$_FILES['image']['tmp_name'] && !Env::v('image_url')) { return true; @@ -377,7 +377,7 @@ class EventsModule extends PLModule $action = 'edit'; } else { $res = XDB::query('SELECT flags FROM evenements WHERE id = {?}', $eid); - $flags = new FlagSet($res->fetchOneCell()); + $flags = new PlFlagSet($res->fetchOneCell()); $flags->addFlag('wiki'); if (Post::v('important')) { $flags->addFlag('important'); @@ -392,7 +392,7 @@ class EventsModule extends PLModule WHERE id = {?}', Post::v('titre'), Post::v('texte'), Post::v('peremption'), Post::v('promo_min'), Post::v('promo_max'), - $flags->flags(), $eid); + $flags, $eid); if ($upload->exists() && list($x, $y, $type) = $upload->imageInfo()) { XDB::execute('REPLACE INTO evenements_photo SET eid = {?}, attachmime = {?}, x = {?}, y = {?}, attach = {?}',