+ global $globals;
+ if ($globals->banana->event_forum) {
+ require_once 'user.func.inc.php';
+ $forlife = get_user_forlife($this->uid);
+ require_once 'banana/forum.inc.php';
+ $banana = new ForumsBanana($forlife);
+ $post = $banana->post($globals->banana->event_forum,
+ $globals->banana->event_reply,
+ $this->titre, MiniWiki::wikiToText($this->texte, false, 0, 80));
+ if ($post != -1) {
+ XDB::execute("UPDATE evenements
+ SET creation_date = creation_date, post_id = {?}
+ WHERE id = {?}", $post, $eid);
+ }
+ }