"fixed bug reported by Frank Becker on the German list: Links in popup notification contains double egroupware path

(caused by calling html::link AND htm::a_href on the link, which caused a double run through egw_session::link )
"
This commit is contained in:
Ralf Becker 2008-10-16 05:30:31 +00:00
parent 504b096e06
commit 7c69d01277

View File

@ -169,7 +169,7 @@ class notifications_popup implements notifications_iface {
$dimensions = explode('x', $link->popup); $dimensions = explode('x', $link->popup);
$rendered_links[] = html::div($image.$link->text,'onclick="'.$this->jspopup($url, '_blank', $dimensions[0], $dimensions[1]).'"','link'); $rendered_links[] = html::div($image.$link->text,'onclick="'.$this->jspopup($url, '_blank', $dimensions[0], $dimensions[1]).'"','link');
} else { } else {
$rendered_links[] = html::div(html::a_href($image.$link->text, $url, false, 'target="_blank"'),'','link'); $rendered_links[] = html::div('<a href="'.$url.'" target="_blank">'.$image.$link->text.'</a>','','link');
} }
} }