Skip to content

Commit

Permalink
Load prefs on-demand.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Apr 16, 2014
1 parent 5e4fb14 commit 59ab64d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion framework/Core/lib/Horde/Core/Factory/Identity.php
Expand Up @@ -83,7 +83,6 @@ public function create($user = null, $driver = null)
'cache' => false,
'user' => $user
));
$params['prefs']->retrieve();
}

$this->_instances[$key] = new $class($params);
Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/Factory/Prefs.php
Expand Up @@ -114,7 +114,7 @@ function_exists($params['user_hook'])) {
);

if (isset($this->_instances[$sig])) {
$this->_instances[$sig]->retrieve($scope);
$this->_instances[$sig]->changeScope($scope);
return $this->_instances[$sig];
}

Expand Down
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Registry.php
Expand Up @@ -1717,7 +1717,7 @@ public function loadPrefs($app = null)
$user = $this->getAuth();
if ($user) {
if (isset($prefs) && ($prefs->getUser() == $user)) {
$prefs->retrieve($app);
$prefs->changeScope($app);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion framework/Core/package.xml
Expand Up @@ -1195,7 +1195,7 @@
<package>
<name>Horde_Prefs</name>
<channel>pear.horde.org</channel>
<min>2.0.0</min>
<min>2.6.0</min>
<max>3.0.0alpha1</max>
<exclude>3.0.0alpha1</exclude>
</package>
Expand Down

0 comments on commit 59ab64d

Please sign in to comment.