X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ac116980ac78b74dbc1e0ae7ff2d329d7e581ba5..992d3faac81baa105c92874a412ebf5389c0ca14:/utils/country_languages.php diff --git a/utils/country_languages.php b/utils/country_languages.php index 8bd85b8a..1a7ea616 100644 --- a/utils/country_languages.php +++ b/utils/country_languages.php @@ -11,13 +11,13 @@ $aCMDOptions array('help', 'h', 0, 1, 0, 0, false, 'Show Help'), array('quiet', 'q', 0, 1, 0, 0, 'bool', 'Quiet output'), array('verbose', 'v', 0, 1, 0, 0, 'bool', 'Verbose output'), + array('project-dir', '', 0, 1, 1, 1, 'realpath', 'Base directory of the Nominatim installation (default: .)'), ); getCmdOpt($_SERVER['argv'], $aCMDOptions, $aCMDResult, true, true); +loadSettings($aCMDResult['project-dir'] ?? getcwd()); setupHTTPProxy(); -include(CONST_Phrase_Config); - if (true) { $sURL = 'https://wiki.openstreetmap.org/wiki/Special:Export/Nominatim/Country_Codes'; $sWikiPageXML = file_get_contents($sURL);