From f229ef69be325241d2e7f00371f76bd47886ac35 Mon Sep 17 00:00:00 2001 From: sraffauf Date: Thu, 22 Jan 2026 20:57:49 +0100 Subject: [PATCH] fixed broken links Fixed broken links to data directory --- .gitignore | 3 ++- php/delete_ticket.php | 2 +- php/save_ticket.php | 2 +- php/update_ticket.php | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8b13789..da23f20 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ - +/data/users.json +/data/tickets.json diff --git a/php/delete_ticket.php b/php/delete_ticket.php index b61d594..452bed4 100644 --- a/php/delete_ticket.php +++ b/php/delete_ticket.php @@ -13,7 +13,7 @@ if($index === null){ exit; } -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath = '../data/tickets.json'; $tickets = []; if(file_exists($ticketsPath)){ diff --git a/php/save_ticket.php b/php/save_ticket.php index 503ebf3..5071b78 100644 --- a/php/save_ticket.php +++ b/php/save_ticket.php @@ -22,7 +22,7 @@ $newTicket = [ 'date' => $date ]; -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath ='../data/tickets.json'; $tickets = []; if (file_exists($ticketsPath)) { diff --git a/php/update_ticket.php b/php/update_ticket.php index 2788f78..b3a5414 100644 --- a/php/update_ticket.php +++ b/php/update_ticket.php @@ -14,7 +14,7 @@ if($index === null || $ticket === null){ exit; } -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath = '../data/tickets.json'; $tickets = []; if(file_exists($ticketsPath)){