瀏覽代碼

changed location for viewing text attachments

stekkel 23 年之前
父節點
當前提交
a01ef3183b
共有 1 個文件被更改,包括 3 次插入7 次删除
  1. 3 7
      functions/attachment_common.php

+ 3 - 7
functions/attachment_common.php

@@ -93,14 +93,10 @@ function attachment_common_link_text(&$Args)
        $Args[1]['attachment_common']['href'] = Where it links to
        $Args[1]['attachment_common']['href'] = Where it links to
       
       
        This sets the 'href' of this plugin for a new link. */
        This sets the 'href' of this plugin for a new link. */
-    $Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' .
-        $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] .
-        '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=plain';
+       
+    global $QUERY_STRING;
+    $Args[1]['attachment_common']['href'] = '../src/view_text.php?'. $QUERY_STRING;
     
     
-    /* If we got here from a search, we should preserve these variables */
-    if ($Args[8] && $Args[9])
-        $Args[1]['attachment_common']['href'] .= '&where=' . 
-        urlencode($Args[8]) . '&what=' . urlencode($Args[9]);
   
   
     /* The link that we created needs a name.  "view" will be displayed for
     /* The link that we created needs a name.  "view" will be displayed for
        all text attachments handled by this plugin. */
        all text attachments handled by this plugin. */