From 829cbfe88cb4cd86072cf2a2b926868e9d4558cf Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 8 Feb 2011 09:17:24 +0000 Subject: - Use html::span instead of HTML code --- program/steps/mail/func.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 0ccc923d2..9fa1e01fc 100644 --- a/program/steps/mail/func.inc +++ b/program/steps/mail/func.inc @@ -1275,7 +1275,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null) } if ($addicon && $got_writable_abook) { - $address = '' . $address . html::a(array( + $address = html::span(null, $address . html::a(array( 'href' => "#add", 'onclick' => sprintf("return %s.command('add-contact','%s',this)", JS_OBJECT_NAME, urlencode($string)), 'title' => rcube_label('addtoaddressbook'), @@ -1283,7 +1283,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null) html::img(array( 'src' => $CONFIG['skin_path'] . $addicon, 'alt' => "Add contact", - ))) . ''; + )))); } $out .= $address; } -- cgit v1.2.3