check for configuration in its regular place

This commit is contained in:
Uwe Steinmann 2025-11-14 16:16:33 +01:00
parent 0d23b65271
commit e105c85b22

View File

@ -23,7 +23,14 @@ use Seeddms\Console\Commands\CheckextensionCommand;
use Seeddms\Seeddms\Settings;
use Seeddms\Seeddms\Translator;
/* 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.