mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 02:20:41 +00:00
check for configuration in its regular place
This commit is contained in:
parent
0d23b65271
commit
e105c85b22
|
|
@ -23,7 +23,14 @@ use Seeddms\Console\Commands\CheckextensionCommand;
|
||||||
use Seeddms\Seeddms\Settings;
|
use Seeddms\Seeddms\Settings;
|
||||||
use Seeddms\Seeddms\Translator;
|
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
|
/* For now includce inc.Language.php, because it defines the old
|
||||||
* translation functions (e.g. getMLText()), which are still used
|
* translation functions (e.g. getMLText()), which are still used
|
||||||
* by many extensions.
|
* by many extensions.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user