Set Working directory of cron parser upon initializtion which fixes relative path issue when adding attachments to tickets

This commit is contained in:
johnnyq 2023-04-30 13:28:00 -04:00
parent c11b3d5987
commit 8cf1bd8911
1 changed files with 3 additions and 0 deletions

View File

@ -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");