From: Florent Bruneau Date: Sat, 5 Jun 2010 12:26:50 +0000 (+0200) Subject: Update notification count when adding/removing a contact. X-Git-Tag: xorg/1.0.0~183 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=05d148600fe747bb1e0b9400a898105deb044698;p=platal.git Update notification count when adding/removing a contact. Signed-off-by: Florent Bruneau --- diff --git a/modules/carnet.php b/modules/carnet.php index d71aec1..054d07a 100644 --- a/modules/carnet.php +++ b/modules/carnet.php @@ -270,6 +270,7 @@ class CarnetModule extends PLModule if (XDB::execute("DELETE FROM contacts WHERE uid = {?} AND contact = {?}", $uid, $contact->id())) { + Platal::session()->updateNbNotifs(); $page->trigSuccess("Contact retiré !"); } } @@ -280,6 +281,7 @@ class CarnetModule extends PLModule if (XDB::execute("REPLACE INTO contacts (uid, contact) VALUES ({?}, {?})", $uid, $contact->id())) { + Platal::session()->updateNbNotifs(); $page->trigSuccess('Contact ajouté !'); } else { $page->trigWarning('Contact déjà dans la liste !');