mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-26 06:22:13 +03:00
Merge pull request #2243 from darkshredder/XML-format-fix
Fixed: XML format: more_url points to localhost, not base URL
This commit is contained in:
commit
8dbfdd59b0
@ -67,11 +67,11 @@ if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_SERVER['REQUEST_SCHEME'])
|
if (isset($_SERVER['REQUEST_SCHEME'])
|
||||||
&& isset($_SERVER['SERVER_NAME'])
|
&& isset($_SERVER['HTTP_HOST'])
|
||||||
&& isset($_SERVER['DOCUMENT_URI'])
|
&& isset($_SERVER['DOCUMENT_URI'])
|
||||||
) {
|
) {
|
||||||
$sMoreURL = $_SERVER['REQUEST_SCHEME'].'://'
|
$sMoreURL = $_SERVER['REQUEST_SCHEME'].'://'
|
||||||
.$_SERVER['SERVER_NAME'].$_SERVER['DOCUMENT_URI'].'/?'
|
.$_SERVER['HTTP_HOST'].$_SERVER['DOCUMENT_URI'].'/?'
|
||||||
.http_build_query($aMoreParams);
|
.http_build_query($aMoreParams);
|
||||||
} else {
|
} else {
|
||||||
$sMoreURL = '/search.php'.http_build_query($aMoreParams);
|
$sMoreURL = '/search.php'.http_build_query($aMoreParams);
|
||||||
|
Loading…
Reference in New Issue
Block a user