From 05d148600fe747bb1e0b9400a898105deb044698 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 5 Jun 2010 14:26:50 +0200 Subject: [PATCH] Update notification count when adding/removing a contact. Signed-off-by: Florent Bruneau --- modules/carnet.php | 2 ++ 1 file changed, 2 insertions(+) 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 !'); -- 2.1.4