This commit is contained in:
Go Johansson 2022-12-16 22:59:59 +01:00
parent d5e2cc4c1e
commit 76b2600cd8
2 changed files with 4 additions and 4 deletions

View File

@ -2,12 +2,12 @@
function checkConfig()
{
if (!file_exists(__DIR__ . '../config.json')) {
if (!file_exists(__DIR__ . '/../config.json')) {
throw new Exception('Cant read settings file.', 500);
}
try {
$settings = json_decode(
file_get_contents(__DIR__ . '../config.json'),
file_get_contents(__DIR__ . '/../config.json'),
true,
);
if ($settings['PHP_ERRORS']) {

View File

@ -20,12 +20,12 @@
function checkConfig()
{
if (!file_exists(__DIR__ . '../config.json')) {
if (!file_exists(__DIR__ . '/../config.json')) {
throw new Exception('Cant read settings file.', 500);
}
try {
$settings = json_decode(
file_get_contents(__DIR__ . '../config.json'),
file_get_contents(__DIR__ . '/../config.json'),
true,
);
if ($settings['PHP_ERRORS']) {