X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/301fd7f7e8d97755849e26427c12eed070f21b5f..04690ad8c4734c15efc920bc0dab59cf78e3e7cb:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index b4c415d9..5d4038d6 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -5,6 +5,11 @@ require('Symfony/Component/Dotenv/autoload.php'); function loadSettings($sProjectDir) { @define('CONST_InstallDir', $sProjectDir); + // Temporary hack to set the direcory via environment instead of + // the installed scripts. Neither setting is part of the official + // set of settings. + defined('CONST_DataDir') or define('CONST_DataDir', $_SERVER['NOMINATIM_DATADIR']); + defined('CONST_BinDir') or define('CONST_BinDir', $_SERVER['NOMINATIM_BINDIR']); $dotenv = new \Symfony\Component\Dotenv\Dotenv(); $dotenv->load(CONST_DataDir.'/settings/env.defaults');