check for settings.xml in conf dir not just the conf dir

This commit is contained in:
Uwe Steinmann 2021-10-16 15:01:30 +02:00
parent 3a81d22e8b
commit 54d4ebf872

View File

@ -1206,7 +1206,7 @@ class Settings { /* {{{ */
$configDir = null; $configDir = null;
/* new code starts here */ /* new code starts here */
while($_arr && !$configDir) { while($_arr && !$configDir) {
if(file_exists(implode('/', $_arr)."/conf/")) if(file_exists(implode('/', $_arr)."/conf/settings.xml"))
$configDir = implode('/', $_arr)."/conf/"; $configDir = implode('/', $_arr)."/conf/";
else else
array_pop($_arr); array_pop($_arr);