Clean up in function get_attachment_string() in attachments_db.inc
authorJoe <joe.hunt.consulting@gmail.com>
Tue, 7 Feb 2023 22:40:58 +0000 (23:40 +0100)
committerJoe <joe.hunt.consulting@gmail.com>
Tue, 7 Feb 2023 22:40:58 +0000 (23:40 +0100)
admin/db/attachments_db.inc

index 77d8d91e5aa088b0c06cd06b1f1923291c5b67d9..c4fc0d68fab7c4bb6fa0db0e8cd7858687d6c1d3 100644 (file)
@@ -64,8 +64,7 @@ function get_attachment_string($type, $id)
     {
         if (strlen($str_return))
             $str_return = $str_return . " \n";    
-        $str_return .= _("Attached File:")." <a href='$path_to_root/admin/attachments.php?vw=".$attachment["id"]." ' target='blanc_'> ". 
-               $attachment["id"] . " " . $attachment["description"]. " - ". $attachment["filename"]."</a><br>";
+        $str_return .= _("Attached File:")." <a target='_blank' href='$path_to_root/admin/attachments.php?vw=".$attachment["id"]."' onclick='javascript:openWindow(this.href, this.target);return false;'> ".$attachment["id"] . " " . $attachment["description"]. " - ". $attachment["filename"]."</a><br>";
     }
     return $str_return . "<br>";
 }