fixed broken links

Fixed broken links to data directory
This commit is contained in:
sraffauf
2026-01-22 20:57:49 +01:00
parent 65403282f7
commit f229ef69be
4 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@@ -1 +1,2 @@
/data/users.json
/data/tickets.json

View File

@@ -13,7 +13,7 @@ if($index === null){
exit; exit;
} }
$ticketsPath = __DIR__ . '../data/tickets.json'; $ticketsPath = '../data/tickets.json';
$tickets = []; $tickets = [];
if(file_exists($ticketsPath)){ if(file_exists($ticketsPath)){

View File

@@ -22,7 +22,7 @@ $newTicket = [
'date' => $date 'date' => $date
]; ];
$ticketsPath = __DIR__ . '../data/tickets.json'; $ticketsPath ='../data/tickets.json';
$tickets = []; $tickets = [];
if (file_exists($ticketsPath)) { if (file_exists($ticketsPath)) {

View File

@@ -14,7 +14,7 @@ if($index === null || $ticket === null){
exit; exit;
} }
$ticketsPath = __DIR__ . '../data/tickets.json'; $ticketsPath = '../data/tickets.json';
$tickets = []; $tickets = [];
if(file_exists($ticketsPath)){ if(file_exists($ticketsPath)){