Skip to content

Commit

Permalink
mimp -> minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 22, 2013
1 parent 69b8a76 commit 491f1f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions imp/lib/Message/Ui.php
Expand Up @@ -238,7 +238,7 @@ public function buildAddressLinks(Horde_Mail_Rfc822_List $addrlist,

$add_link = null;
$addr_array = array();
$mimp_view = ($registry->getView() == Horde_Registry::VIEW_MINIMAL);
$minimal = ($registry->getView() == Horde_Registry::VIEW_MINIMAL);

/* Set up the add address icon link if contact manager is
* available. */
Expand All @@ -255,7 +255,7 @@ public function buildAddressLinks(Horde_Mail_Rfc822_List $addrlist,
if ($ob instanceof Horde_Mail_Rfc822_Group) {
$group_array = array();
foreach ($ob->addresses as $ad) {
$ret = $mimp_view
$ret = $minimal
? strval($ad)
: htmlspecialchars(strval($ad));

Expand All @@ -278,13 +278,13 @@ public function buildAddressLinks(Horde_Mail_Rfc822_List $addrlist,
$group_array[] = $ret;
}

$groupname = $mimp_view
$groupname = $minimal
? $ob->groupname
: htmlspecialchars($ob->groupname);

$addr_array[] = $groupname . ':' . (count($group_array) ? ' ' . implode(', ', $group_array) : '');
} else {
$ret = $mimp_view
$ret = $minimal
? strval($ob)
: htmlspecialchars(strval($ob));

Expand All @@ -308,7 +308,7 @@ public function buildAddressLinks(Horde_Mail_Rfc822_List $addrlist,
}
}

if ($mimp_view) {
if ($minimal) {
return implode(', ', $addr_array);
}

Expand Down

0 comments on commit 491f1f4

Please sign in to comment.