]> git.openstreetmap.org Git - nominatim.git/blob - lib-php/setup_functions.php
remove special status of partial tokens
[nominatim.git] / lib-php / setup_functions.php
1 <?php
2
3 function getOsm2pgsqlBinary()
4 {
5     $sBinary = getSetting('OSM2PGSQL_BINARY');
6
7     return $sBinary ? $sBinary : CONST_Default_Osm2pgsql;
8 }
9
10 function getImportStyle()
11 {
12     $sStyle = getSetting('IMPORT_STYLE');
13
14     if (in_array($sStyle, array('admin', 'street', 'address', 'full', 'extratags'))) {
15         return CONST_ConfigDir.'/import-'.$sStyle.'.style';
16     }
17
18     return $sStyle;
19 }