Use Horde_Notification::replace().
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 19:38:25 +0000 (13:38 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 21 Oct 2009 20:32:00 +0000 (14:32 -0600)
imp/lib/Application.php

index 4c15e31..50dc7a4 100644 (file)
@@ -586,8 +586,7 @@ class IMP_Application extends Horde_Registry_Application
         new IMP_Application(array('init' => array('authentication' => 'none')));
 
         $notification = Horde_Notification::singleton();
-        $notification->detach('status');
-        $notification->attach('status', array('prefs' => true, 'viewmode' => 'dimp'), 'IMP_Notification_Listener_Status');
+        $notification->replace('status', array('prefs' => true, 'viewmode' => 'dimp'), 'IMP_Notification_Listener_Status');
     }
 
     /**