mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-30 02:07:52 +03:00
298ed11261
This replaces {data_dir}/settings throughout the code, so that the configuration may be placed somewhere else in the directory structure (e.g. in /etc).
14 lines
259 B
PHP
14 lines
259 B
PHP
<?php
|
|
|
|
require('Symfony/Component/Dotenv/autoload.php');
|
|
|
|
function loadDotEnv()
|
|
{
|
|
$dotenv = new \Symfony\Component\Dotenv\Dotenv();
|
|
$dotenv->load(CONST_ConfigDir.'/env.defaults');
|
|
|
|
if (file_exists('.env')) {
|
|
$dotenv->load('.env');
|
|
}
|
|
}
|