Shout: Fix references to objects
authorBen Klang <ben@alkaloid.net>
Sun, 10 Jan 2010 18:58:46 +0000 (13:58 -0500)
committerBen Klang <ben@alkaloid.net>
Sun, 10 Jan 2010 18:58:46 +0000 (13:58 -0500)
shout/ajax.php
shout/lib/Application.php
shout/lib/Shout.php

index 560d0bc..45137d3 100644 (file)
@@ -33,7 +33,7 @@ try {
         ($action != 'LogOut')) {
         //FIXME: The below is certain to break since it relies on classes I did
         //       not yet copy from IMP.
-        $notification = Horde_Notification::singleton();
+        $notification = &Horde_Notification::singleton();
         $shout_notify = $notification->attach('status', array('viewmode' => 'dimp'), 'Shout_Notification_Listener_Status');
         $notification->push(str_replace('&amp;', '&', Horde_Auth::getLogoutUrl(array('reason' => Horde_Auth::REASON_SESSION))), 'shout.timeout', array('content.raw'));
         Horde::sendHTTPResponse(Horde::prepareResponse(null, $shout_notify), 'json');
index b29e1c0..75deba2 100644 (file)
@@ -63,7 +63,7 @@ class Shout_Application extends Horde_Registry_Application
                 $contexts = false;
             }
 
-            $notification = Horde_Notification::singleton();
+            $notification = &Horde_Notification::singleton();
             $GLOBALS['notification'] = $notification;
             $notification->attach('status');
 
index c769012..3575600 100644 (file)
@@ -53,7 +53,7 @@ class Shout
     static public function getTabs($context, &$vars)
     {
         global $shout;
-        $perms = Horde_Perms::singleton();
+        $perms = &Horde_Perms::singleton();
 
         $permprefix = 'shout:contexts:' . $context;
 
@@ -100,7 +100,7 @@ class Shout
     {
         if (Horde_Auth::isAdmin()) { return true; }
 
-        $perms = Horde_Perms::singleton();
+        $perms = &Horde_Perms::singleton();
         if ($permmask === null) {
             $permmask = PERMS_SHOW|PERMS_READ;
         }