mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Pass non-popup links through framework's link handler
This commit is contained in:
parent
d69661ab55
commit
4e54cdabc0
@ -492,6 +492,11 @@ class link_widget
|
||||
{
|
||||
$options = ' target="'.($target ? $target : '_blank').'"';
|
||||
}
|
||||
else
|
||||
{
|
||||
// Pass link through framework's handler
|
||||
$href = str_replace(',','%2C',egw::link('/index.php',egw_link::view($link['app'],$link['id'],$link),$link['app']));
|
||||
}
|
||||
if ($help)
|
||||
{
|
||||
$options .= " onMouseOver=\"self.status='".addslashes(html::htmlspecialchars($help))."'; return true;\"";
|
||||
@ -499,7 +504,7 @@ class link_widget
|
||||
}
|
||||
return html::a_href(
|
||||
html::htmlspecialchars(egw_link::title($link['app'],$link['id'])),
|
||||
egw_link::view($link['app'],$link['id'],$link),'',$options);
|
||||
$href ? $href : egw_link::view($link['app'],$link['id'],$link),'',$options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user