Fix notification reference.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Aug 2009 18:22:36 +0000 (12:22 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 5 Aug 2009 20:35:16 +0000 (14:35 -0600)
imp/lib/Notification/Listener/Status.php
imp/lib/Notification/Listener/StatusMobile.php

index f516991..b88a10d 100644 (file)
@@ -78,7 +78,7 @@ class IMP_Notification_Listener_Status extends Horde_Notification_Listener_Statu
 
         /* Display IMAP alerts. */
         foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) {
-            $this->push($alert, 'horde.warning');
+            $GLOBALS['notification']->push($alert, 'horde.warning');
         }
 
         parent::notify($messageStack, $options);
index d777cad..8c6c91b 100644 (file)
@@ -25,7 +25,7 @@ class IMP_Notification_Listener_StatusMobile extends Horde_Notification_Listener
     {
         /* Display IMAP alerts. */
         foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) {
-            $this->push($alert, 'horde.warning');
+            $GLOBALS['notification']->push($alert, 'horde.warning');
         }
 
         parent::notify($messageStack, $options);