From 1403085104acf2e9f25e9b8e8fec7adb49806a43 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 22 Sep 2010 16:15:54 -0400 Subject: [PATCH] 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. --- framework/Core/lib/Horde/Core/Factory/Prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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': -- 2.11.0