X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fbanana%2Fml.inc.php;h=9a3174f413f47859ee486724130e7899e3c28b11;hb=d75f57dac58ca37ea8cd1b7849b0b879ad65c76f;hp=f17e02a0fc590fd1a47dc6a0bc5d2a5e252b0084;hpb=c72cef4cd6acfacbfdc72f0b4173237228df6b68;p=platal.git diff --git a/include/banana/ml.inc.php b/include/banana/ml.inc.php index f17e02a..9a3174f 100644 --- a/include/banana/ml.inc.php +++ b/include/banana/ml.inc.php @@ -82,6 +82,17 @@ class MLBanana extends Banana $sig = $nom . ' (' . S::v('promo') . ')'; Banana::$msgedit_headers['X-Org-Mail'] = $this->user->forlifeEmail(); + // Tree color + $req = XDB::query("SELECT tree_unread, tree_read + FROM {$globals->banana->table_prefix}profils + WHERE uid={?}", S::i('uid')); + if (!(list($unread, $read) = $req->fetchOneRow())) { + $unread = 'o'; + $read = 'dg'; + } + Banana::$tree_unread = $unread; + Banana::$tree_read = $read; + // Build user profile Banana::$profile['headers']['From'] = "$nom <$mail>"; Banana::$profile['headers']['Organization'] = make_Organization();