forked from GNUsocial/gnu-social
Add a flag for if there's no config file
This commit is contained in:
parent
99d8fea394
commit
f0d3ba2bc2
@ -178,9 +178,12 @@ if (strlen($_path) > 0) {
|
|||||||
|
|
||||||
$_config_files[] = INSTALLDIR.'/config.php';
|
$_config_files[] = INSTALLDIR.'/config.php';
|
||||||
|
|
||||||
|
$_have_a_config = false;
|
||||||
|
|
||||||
foreach ($_config_files as $_config_file) {
|
foreach ($_config_files as $_config_file) {
|
||||||
if (file_exists($_config_file)) {
|
if (file_exists($_config_file)) {
|
||||||
include_once($_config_file);
|
include_once($_config_file);
|
||||||
|
$_have_a_config = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user