From: Michael J. Rubinsky Date: Wed, 22 Sep 2010 20:15:54 +0000 (-0400) Subject: Need to actually get the prefs here, not just set the scope. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1403085104acf2e9f25e9b8e8fec7adb49806a43;p=horde.git Need to actually get the prefs here, not just set the scope. This fixes at least one section where prefs were breaking - when calling API methods as a guest. Session based prefs are still somewhat broken when authenticating to horde. The scope values are not present in the session until after the first page has completed loading. --- diff --git a/framework/Core/lib/Horde/Core/Factory/Prefs.php b/framework/Core/lib/Horde/Core/Factory/Prefs.php index ce43e4e2b..3168167a5 100644 --- a/framework/Core/lib/Horde/Core/Factory/Prefs.php +++ b/framework/Core/lib/Horde/Core/Factory/Prefs.php @@ -96,7 +96,7 @@ class Horde_Core_Factory_Prefs $sig = hash('md5', serialize($opts)); if (isset($this->_instances[$sig])) { - $this->_instances[$sig]->setScope($scope); + $this->_instances[$sig]->retrieve($scope); } else { switch ($driver) { case 'Ldap':