From: Chuck Hagenbuch Date: Sun, 12 Jul 2009 02:00:42 +0000 (-0400) Subject: don't need & on object creation X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=13ad61e7f6ef77a994dfaad2c1481098683b3a38;p=horde.git don't need & on object creation --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 253fec953..42dc33f3a 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -187,10 +187,10 @@ class Horde_Registry } /* Create the global Perms object. */ - $GLOBALS['perms'] = &Perms::singleton(); + $GLOBALS['perms'] = Perms::singleton(); /* Attach javascript notification listener. */ - $notification = &Horde_Notification::singleton(); + $notification = Horde_Notification::singleton(); $notification->attach('javascript'); } @@ -929,11 +929,11 @@ class Horde_Registry /* If there is no logged in user, return an empty Prefs:: * object with just default preferences. */ if (!Horde_Auth::getAuth()) { - $GLOBALS['prefs'] = &Prefs::factory('session', $app, '', '', null, false); + $GLOBALS['prefs'] = Prefs::factory('session', $app, '', '', null, false); } else { if (!isset($GLOBALS['prefs']) || $GLOBALS['prefs']->getUser() != Horde_Auth::getAuth()) { - $GLOBALS['prefs'] = &Prefs::factory($GLOBALS['conf']['prefs']['driver'], $app, - Horde_Auth::getAuth(), Horde_Auth::getCredential('password')); + $GLOBALS['prefs'] = Prefs::factory($GLOBALS['conf']['prefs']['driver'], $app, + Horde_Auth::getAuth(), Horde_Auth::getCredential('password')); } else { $GLOBALS['prefs']->retrieve($app); }