fixed broken links
Fixed broken links to data directory
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
|
/data/users.json
|
||||||
|
/data/tickets.json
|
||||||
|
|||||||
@@ -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)){
|
||||||
|
|||||||
@@ -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)) {
|
||||||
|
|||||||
@@ -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)){
|
||||||
|
|||||||
Reference in New Issue
Block a user