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

View File

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

View File

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

View File

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