links to vfs are to display the filename decoded instead of the urlencoded version (which is needed to access the file)

This commit is contained in:
Klaus Leithoff 2012-03-27 13:56:22 +00:00
parent 3a23d4bb21
commit f5c5ef9c29

View File

@ -298,7 +298,7 @@ class link_widget
for($row=$tpl->rows-1; list(,$link) = each($links); ++$row)
{
$value[$row] = $link;
$value[$row]['title'] = egw_link::title($link['app'],$link['id'],$link);
$value[$row]['title'] = egw_link::title($link['app'],($link['app'] == egw_link::VFS_APPNAME?egw_vfs::decodePath($link['id']):$link['id']),$link);
if (!is_array($link['id']))
{
$value[$row]['view'] = egw_link::view($link['app'],$link['id'],$link);
@ -512,7 +512,7 @@ class link_widget
$options .= " onMouseOut=\"self.status=''; return true;\"";
}
return html::a_href(
html::htmlspecialchars(egw_link::title($link['app'],$link['id'])),
html::htmlspecialchars(egw_link::title($link['app'],($link['app']==egw_link::VFS_APPNAME?egw_vfs::decodePath($link['id']):$link['id']))),
$href ? $href : egw_link::view($link['app'],$link['id'],$link),'',$options);
}