From: Michael M Slusarz Date: Tue, 25 Nov 2008 19:12:24 +0000 (-0700) Subject: Make $addURL optional; make no linking the default. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3a0e45fec1bf6ecdc66cf3d8770d3f553be3e03a;p=horde.git Make $addURL optional; make no linking the default. --- diff --git a/imp/lib/UI/Message.php b/imp/lib/UI/Message.php index 491dc71cd..bdcd570ee 100644 --- a/imp/lib/UI/Message.php +++ b/imp/lib/UI/Message.php @@ -262,7 +262,7 @@ class IMP_UI_Message * * @return string String containing the formatted address list. */ - public function buildAddressLinks($addrlist, $addURL, $link = true) + public function buildAddressLinks($addrlist, $addURL = null, $link = false) { global $prefs, $registry; @@ -275,7 +275,7 @@ class IMP_UI_Message /* Set up the add address icon link if contact manager is * available. */ - if ($link && $prefs->getValue('add_source')) { + if (!is_null($addURL) && $link && $prefs->getValue('add_source')) { $add_link = $registry->link('contacts/add', array('source' => $prefs->getValue('add_source'))); if (is_a($add_link, 'PEAR_Error')) { if ($registry->hasMethod('contacts/import')) {