Add a few more vars to image handler for later user with templates.
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Oct 2006 19:59:55 +0000 (19:59 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 6 Oct 2006 19:59:55 +0000 (19:59 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11845 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/attachment_common.php

index 0aed5a439aea63327d7423659f7665bfc17d83d4..e8bee5b7e562142bc21259a191fad7fb22083ec0 100644 (file)
@@ -205,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);