mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-06-05 09:53:12 +00:00
💀
This commit is contained in:
parent
b3dbc2cb65
commit
37e1db5b7b
1 changed files with 2 additions and 2 deletions
|
@ -10,13 +10,13 @@
|
|||
*/
|
||||
$user_settings = json_decode(file_get_contents(__DIR__."/../usr/conf/conf.json"), true);
|
||||
|
||||
if (!is_file(__DIR__."/../usr/conf/conf.json")) {
|
||||
if (is_file(__DIR__."/../usr/conf/conf.json")) {
|
||||
$settings = json_decode(file_get_contents(__DIR__."/../usr/conf/conf.json"), true);
|
||||
} else {
|
||||
$settings = json_decode(file_get_contents(__DIR__."/../usr/conf.default.json"), true);
|
||||
}
|
||||
|
||||
if (!is_file(__DIR__."/../usr/conf/msg.json")) {
|
||||
if (is_file(__DIR__."/../usr/conf/msg.json")) {
|
||||
$user_welcome = json_decode(file_get_contents(__DIR__."/../usr/conf/msg.json"), true);
|
||||
$user_welcome = $user_welcome['welcome'];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue