mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
"using egw_link::VFS_APPNAME constant instead of 'file'"
This commit is contained in:
parent
a670e8f4a3
commit
fb04a535b6
@ -858,16 +858,10 @@ class infolog_ui
|
|||||||
|
|
||||||
// Get links to be copied
|
// Get links to be copied
|
||||||
$content['link_to']['to_id'] = egw_link::get_links($content['link_to']['to_app'], $content['link_to']['to_id']);
|
$content['link_to']['to_id'] = egw_link::get_links($content['link_to']['to_app'], $content['link_to']['to_id']);
|
||||||
if(is_array($content['link_to']['to_id']))
|
|
||||||
{
|
|
||||||
// Special mangling for files so the files get copied
|
// Special mangling for files so the files get copied
|
||||||
foreach($content['link_to']['to_id'] as $link_id => &$link)
|
foreach($content['link_to']['to_id'] as $link_id => &$link)
|
||||||
{
|
{
|
||||||
if($link['app'] != 'file')
|
if ($link['app'] == egw_link::VFS_APPNAME)
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
$link['id'] = $link + array(
|
$link['id'] = $link + array(
|
||||||
'tmp_name' => egw_link::vfs_path($link['app2'], $link['id2']).'/'.$link['id'],
|
'tmp_name' => egw_link::vfs_path($link['app2'], $link['id2']).'/'.$link['id'],
|
||||||
@ -875,8 +869,8 @@ class infolog_ui
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if($content['info_link_id'])
|
||||||
if($content['info_link_id']) {
|
{
|
||||||
$info_link_id = $content['info_link_id'];
|
$info_link_id = $content['info_link_id'];
|
||||||
unset($content['info_link_id']);
|
unset($content['info_link_id']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user