瀏覽代碼

set correct entity_id

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

+ 3 - 1
functions/attachment_common.php

@@ -96,7 +96,9 @@ function attachment_common_link_text(&$Args)
        
     global $QUERY_STRING;
     $Args[1]['attachment_common']['href'] = '../src/view_text.php?'. $QUERY_STRING;
-    
+    $Args[1]['attachment_common']['href'] =
+          set_url_var($Args[1]['attachment_common']['href'], 
+	  'passed_ent_id',$Args[5]);
   
     /* The link that we created needs a name.  "view" will be displayed for
        all text attachments handled by this plugin. */