Skip to content

Commit

Permalink
Merge branch 'master' of ssh://dev.horde.org/horde/git/horde
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 21, 2016
2 parents 3bc2327 + 2f54699 commit 721f730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion imp/lib/Ajax/Application/Handler/ImageUnblock.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ public function imageUnblockAdd()
{
global $injector, $notification;

$h = $injector->getInstance('IMP_Factory_Contents')->create(new IMP_Indices_Mailbox($this->vars))->getHeader();
$indices = new IMP_Indices_Mailbox($this->vars);
$h = $injector->getInstance('IMP_Factory_Contents')
->create($indices)
->getHeader();
if (!($f = $h['from'])) {
return true;
}

$address = $f->getAddressList(true)->first()->bare_address;

if ($injector->getInstance('IMP_Prefs_Special_ImageReplacement')->addSafeAddrList($address)) {
$this->_base->queue->message($indices);
$notification->push(sprintf(_("Always showing images in messages sent by %s."), $address), 'horde.success');
}

Expand Down
2 changes: 1 addition & 1 deletion imp/lib/Indices/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct()
}

if (!isset($this->buids)) {
$this->buids = new IMP_Indices();
$this->buids = new IMP_Indices($this->_indices);
}

if (!isset($this->mailbox)) {
Expand Down

0 comments on commit 721f730

Please sign in to comment.