]> git.openstreetmap.org Git - nominatim.git/blobdiff - settings/settings.php
Merge branch 'tigerlines' of https://github.com/markigail/Nominatim
[nominatim.git] / settings / settings.php
index 93d3a9d5b4cfc5733056ad60541b462bc310f4d8..ea664683adc02d9606b71aa28888b45735dc8cbd 100644 (file)
@@ -1,5 +1,7 @@
 <?php
-       @define('CONST_InstallPath', dirname(dirname(__FILE__)));
+       @define('CONST_BasePath', '@CMAKE_SOURCE_DIR@');
+       @define('CONST_InstallPath', '@CMAKE_BINARY_DIR@');
+       if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SETTINGS'));
        if (file_exists(CONST_InstallPath.'/settings/local.php')) require_once(CONST_InstallPath.'/settings/local.php');
        if (isset($_GET['debug']) && $_GET['debug']) @define('CONST_Debug', true);