From 21d00049ba3ca6bf7737420cd6440395d26a0606 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 29 May 2017 22:03:46 -0400 Subject: [PATCH] Fix URL --- inc/view_attachment_functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index 2418ad0c..3aee6e88 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -51,11 +51,12 @@ function mfh_listAttachments($attachments = '', $reply = 0, $is_staff) } elseif (in_array($fontAwesomeIcon, array('fa fa-file-word-o', 'fa fa-file-excel-o', 'fa fa-file-powerpoint-o'))) { //-- Get the actual image location and display a thumbnail. It will be linked to a modal to view a larger size. $path = mfh_getSavedNameUrlForAttachment($att_id, $is_staff); + $apiPath = preg_replace('/https?:\/\//i', '', $hesk_settings['hesk_url'] . '/api/index.php/v1/tickets/' . $trackingID . '/attachments/' . $att_id); if ($path == '') { echo ''; } else { - echo ' + echo ' '; }