Skip to content

Commit

Permalink
Fix retrieving rules from prefs during a session
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Feb 16, 2015
1 parent db0776b commit e3c230e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ingo/lib/Storage/Filters/Prefs.php
Expand Up @@ -24,12 +24,12 @@ class Ingo_Storage_Filters_Prefs extends Ingo_Storage_Filters
{
/**
* Constructor.
*
* @param Horde_Prefs $p Prefs object to retrieve data from.
*/
public function __construct()
public function __construct(Horde_Prefs $p)
{
global $prefs;

if ($rules = @unserialize($prefs->getValue('rules'))) {
if ($rules = @unserialize($p->getValue('rules'))) {
$this->_filters = $rules;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ingo/lib/Storage/Prefs.php
Expand Up @@ -52,7 +52,7 @@ protected function _retrieve($field, $readonly = false)
break;

case self::ACTION_FILTERS:
$ob = new Ingo_Storage_Filters_Prefs();
$ob = new Ingo_Storage_Filters_Prefs($this->_prefs());
break;

case self::ACTION_FORWARD:
Expand Down

0 comments on commit e3c230e

Please sign in to comment.