Need to actually get the prefs here, not just set the scope.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 22 Sep 2010 20:15:54 +0000 (16:15 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 22 Sep 2010 20:18:40 +0000 (16:18 -0400)
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

index ce43e4e..3168167 100644 (file)
@@ -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':