From a3fe37b69b5443a08f2c137e90418ff4263c54cc Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 24 Oct 2023 19:00:09 +0200 Subject: [PATCH] use absolute path in settings-export to avoid errors when invoking the cli scripts from out of froxlor's homedir Signed-off-by: Michael Kaufmann --- lib/Froxlor/SImExporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/SImExporter.php b/lib/Froxlor/SImExporter.php index a40e24bb..f823f295 100644 --- a/lib/Froxlor/SImExporter.php +++ b/lib/Froxlor/SImExporter.php @@ -65,7 +65,7 @@ class SImExporter public static function export() { $settings_definitions = []; - foreach (PhpHelper::loadConfigArrayDir('./actions/admin/settings/')['groups'] as $group) { + foreach (PhpHelper::loadConfigArrayDir(Froxlor::getInstallDir() . '/actions/admin/settings/')['groups'] as $group) { foreach ($group['fields'] as $field) { $settings_definitions[$field['settinggroup']][$field['varname']] = $field; }