From e105c85b226fb422a09f312e65d37f90fd258088 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Nov 2025 16:16:33 +0100 Subject: [PATCH] check for configuration in its regular place --- utils/console | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/utils/console b/utils/console index 9b853905d..d402da61d 100755 --- a/utils/console +++ b/utils/console @@ -23,7 +23,14 @@ use Seeddms\Console\Commands\CheckextensionCommand; use Seeddms\Seeddms\Settings; use Seeddms\Seeddms\Translator; -$settings = new Settings(); +/* Check if configuration is at regular place. Otherwise set + * SEEDDMS_CONFIG_FILE in your shell. + */ +if (file_exists(__DIR__.'/../../conf/settings.xml')) + $settings = new Settings(__DIR__.'/../../conf/settings.xml'); +else + $settings = new Settings(); + /* For now includce inc.Language.php, because it defines the old * translation functions (e.g. getMLText()), which are still used * by many extensions.