Преглед на файлове

Fixed broken default link for plain text attachments

pdontthink преди 17 години
родител
ревизия
5ff8c7b443
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      functions/attachment_common.php

+ 1 - 1
functions/attachment_common.php

@@ -164,7 +164,7 @@ function attachment_common_link_text(&$Args) {
        This is a lot better in the image links, since the defaultLink will just
        download the image, but the one that we set it to will format the page
        to have an image tag in the center (looking a lot like this text viewer) */
-    $Args[5] = $Args[1]['attachment_common']['href'];
+    $Args[5] = $Args[0]['attachment_common']['href'];
 }
 
 /**