Fix mail integration vfs attachments not working for infolog, tracker and calendar

This commit is contained in:
Hadi Nategh 2015-08-27 10:12:55 +00:00
parent fb147edad5
commit 7a57615e38
2 changed files with 4 additions and 2 deletions

View File

@ -2855,7 +2855,8 @@ class calendar_uiforms extends calendar_ui
{
egw_link::link('calendar',$event['link_to']['to_id'],egw_link::DATA_APPNAME, $attachment);
}
else if(is_readable($attachment['tmp_name']))
else if(is_readable($attachment['tmp_name']) ||
(egw_vfs::is_readable($attachment['tmp_name']) && parse_url($attachment['tmp_name'], PHP_URL_SCHEME) === 'vfs'))
{
egw_link::link('calendar',$event['link_to']['to_id'],'file', $attachment);
}

View File

@ -1186,7 +1186,8 @@ class infolog_bo
{
egw_link::link('infolog',$info['link_to']['to_id'],egw_link::DATA_APPNAME, $attachment);
}
else if(is_readable($attachment['tmp_name']))
else if(is_readable($attachment['tmp_name']) ||
(egw_vfs::is_readable($attachment['tmp_name']) && parse_url($attachment['tmp_name'], PHP_URL_SCHEME) === 'vfs'))
{
egw_link::link('infolog',$info['link_to']['to_id'],'file', $attachment);
}