allow to pass an additional config file via NOMINATIM_SETTINGS variable to command line tools

needed for test environment
This commit is contained in:
Sarah Hoffmann 2014-02-15 18:49:05 +01:00
parent f89f1a65b6
commit 29dfc0c259

View File

@ -1,4 +1,9 @@
<?php
if (file_exists(getenv('NOMINATIM_SETTINGS')))
{
echo 'Using local config: '.getenv('NOMINATIM_SETTINGS');
require_once(getenv('NOMINATIM_SETTINGS'));
}
require_once('init.php');
require_once('cmd.php');