From: Stéphane Jacob Date: Fri, 15 Apr 2011 15:03:17 +0000 (+0200) Subject: Uncomment posting into forums from xnet announces. X-Git-Tag: xorg/1.1.1~96 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=91cf1bdb0dde96ea89f4e5f707fa2801871d7578;p=platal.git Uncomment posting into forums from xnet announces. Signed-off-by: Stéphane Jacob --- diff --git a/modules/xnetgrp.php b/modules/xnetgrp.php index 25871a8..fcff1ba 100644 --- a/modules/xnetgrp.php +++ b/modules/xnetgrp.php @@ -1253,13 +1253,13 @@ class XnetGrpModule extends PLModule if (!empty($art['contact_html'])) { $fulltext .= "\n\n'''Contacts :'''\\\\\n" . $art['contact_html']; } - $post = null;/* + $post = null; if ($globals->asso('forum')) { require_once 'banana/forum.inc.php'; $banana = new ForumsBanana(S::user()); $post = $banana->post($globals->asso('forum'), null, $art['titre'], MiniWiki::wikiToText($fulltext, false, 0, 80)); - }*/ + } XDB::query('INSERT INTO group_announces (uid, asso_id, create_date, titre, texte, contacts, expiration, promo_min, promo_max, flags, post_id) VALUES ({?}, {?}, NOW(), {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})',