switch all utils to initialising dotenv

This commit is contained in:
Sarah Hoffmann
2020-12-16 17:20:58 +01:00
parent 0947b61808
commit 992d3faac8
9 changed files with 26 additions and 13 deletions

View File

@@ -4,10 +4,6 @@ require('Symfony/Component/Dotenv/autoload.php');
function loadSettings($sProjectDir)
{
if (!$sProjectDir) {
$sProjectDir = getcwd();
}
@define('CONST_InstallDir', $sProjectDir);
$dotenv = new \Symfony\Component\Dotenv\Dotenv();