From 8cf1bd8911d33b7fdf5826ab584e9bdc629f6108 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 30 Apr 2023 13:28:00 -0400 Subject: [PATCH] Set Working directory of cron parser upon initializtion which fixes relative path issue when adding attachments to tickets --- cron_ticket_email_parser.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cron_ticket_email_parser.php b/cron_ticket_email_parser.php index d1df9746..48ecefb6 100644 --- a/cron_ticket_email_parser.php +++ b/cron_ticket_email_parser.php @@ -14,6 +14,9 @@ TODO: */ +// Set working directory to the directory this cron script lives at. +chdir(dirname(__FILE__)); + // Get ITFlow config & helper functions require_once("config.php"); require_once("functions.php");