mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
a
This commit is contained in:
parent
d5e2cc4c1e
commit
76b2600cd8
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
function checkConfig()
|
function checkConfig()
|
||||||
{
|
{
|
||||||
if (!file_exists(__DIR__ . '../config.json')) {
|
if (!file_exists(__DIR__ . '/../config.json')) {
|
||||||
throw new Exception('Cant read settings file.', 500);
|
throw new Exception('Cant read settings file.', 500);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$settings = json_decode(
|
$settings = json_decode(
|
||||||
file_get_contents(__DIR__ . '../config.json'),
|
file_get_contents(__DIR__ . '/../config.json'),
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
if ($settings['PHP_ERRORS']) {
|
if ($settings['PHP_ERRORS']) {
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
|
|
||||||
function checkConfig()
|
function checkConfig()
|
||||||
{
|
{
|
||||||
if (!file_exists(__DIR__ . '../config.json')) {
|
if (!file_exists(__DIR__ . '/../config.json')) {
|
||||||
throw new Exception('Cant read settings file.', 500);
|
throw new Exception('Cant read settings file.', 500);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$settings = json_decode(
|
$settings = json_decode(
|
||||||
file_get_contents(__DIR__ . '../config.json'),
|
file_get_contents(__DIR__ . '/../config.json'),
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
if ($settings['PHP_ERRORS']) {
|
if ($settings['PHP_ERRORS']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user