a
This commit is contained in:
parent
d5e2cc4c1e
commit
76b2600cd8
2 changed files with 4 additions and 4 deletions
|
@ -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']) {
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue