Strict type check prevents old config files from breaking everything (per new changes...
[squirrelmail.git] / functions / attachment_common.php
index 446842a2bc3971adc02a373af94c1c98846a8f1d..e8bee5b7e562142bc21259a191fad7fb22083ec0 100644 (file)
@@ -12,6 +12,7 @@
  * @todo document attachment $type hook arguments
  */
 
+$attachment_common_show_images_list = array();
 
 /**
  * Mapping of file extensions to mime types
@@ -204,7 +205,9 @@ function attachment_common_link_image(&$Args) {
     $info['passed_id'] = $Args[3];
     $info['mailbox'] = $Args[4];
     $info['ent_id'] = $Args[5];
-
+    $info['name'] = $Args[7];
+    $info['download_href'] = isset($Args[1]['download link']) ? $Args[1]['download link']['href'] : '';
+    
     $attachment_common_show_images_list[] = $info;
 
     $Args[1]['attachment_common']['href'] = $base_uri  . 'src/image.php?'. htmlspecialchars($QUERY_STRING);