| @@ 1292-1306 (lines=15) @@ | ||
| 1289 | Link::link('infolog',$info['link_to']['to_id'],'addressbook',$contact['id']); |
|
| 1290 | } |
|
| 1291 | } |
|
| 1292 | if (is_array($_attachments)) |
|
| 1293 | { |
|
| 1294 | foreach ($_attachments as $attachment) |
|
| 1295 | { |
|
| 1296 | if($attachment['egw_data']) |
|
| 1297 | { |
|
| 1298 | Link::link('infolog',$info['link_to']['to_id'],Link::DATA_APPNAME, $attachment); |
|
| 1299 | } |
|
| 1300 | else if(is_readable($attachment['tmp_name']) || |
|
| 1301 | (Vfs::is_readable($attachment['tmp_name']) && parse_url($attachment['tmp_name'], PHP_URL_SCHEME) === 'vfs')) |
|
| 1302 | { |
|
| 1303 | Link::link('infolog',$info['link_to']['to_id'],'file', $attachment); |
|
| 1304 | } |
|
| 1305 | } |
|
| 1306 | } |
|
| 1307 | return $info; |
|
| 1308 | } |
|
| 1309 | ||
| @@ 3160-3174 (lines=15) @@ | ||
| 3157 | 'owner' => $GLOBALS['egw_info']['user']['account_id'] |
|
| 3158 | ); |
|
| 3159 | ||
| 3160 | if (is_array($mailContent['attachments'])) |
|
| 3161 | { |
|
| 3162 | foreach ($mailContent['attachments'] as $attachment) |
|
| 3163 | { |
|
| 3164 | if($attachment['egw_data']) |
|
| 3165 | { |
|
| 3166 | Link::link('calendar',$event['link_to']['to_id'],Link::DATA_APPNAME, $attachment); |
|
| 3167 | } |
|
| 3168 | else if(is_readable($attachment['tmp_name']) || |
|
| 3169 | (Vfs::is_readable($attachment['tmp_name']) && parse_url($attachment['tmp_name'], PHP_URL_SCHEME) === 'vfs')) |
|
| 3170 | { |
|
| 3171 | Link::link('calendar',$event['link_to']['to_id'],'file', $attachment); |
|
| 3172 | } |
|
| 3173 | } |
|
| 3174 | } |
|
| 3175 | } |
|
| 3176 | else |
|
| 3177 | { |
|