]> git.openstreetmap.org Git - nominatim.git/commitdiff
use url with php prefix in more url
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 11 Aug 2015 21:09:50 +0000 (23:09 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 11 Aug 2015 21:09:50 +0000 (23:09 +0200)
User may not want to set up URL rewriting for suffixes.

Fixes #241

website/search.php

index a0f12bddb74f326d926bb91a98cc3b3983da7fd9..b107e120c4fde6d38c0e575f15a647dcb394060e 100755 (executable)
        $bShowPolygons = (isset($_GET['polygon']) && $_GET['polygon']);
        $aExcludePlaceIDs = $oGeocode->getExcludedPlaceIDs();
 
-       $sMoreURL = CONST_Website_BaseURL.'search?format='.urlencode($sOutputFormat).'&exclude_place_ids='.join(',',$oGeocode->getExcludedPlaceIDs());
+       $sMoreURL = CONST_Website_BaseURL.'search.php?format='.urlencode($sOutputFormat).'&exclude_place_ids='.join(',',$oGeocode->getExcludedPlaceIDs());
        if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) $sMoreURL .= '&accept-language='.$_SERVER["HTTP_ACCEPT_LANGUAGE"];
        if ($bShowPolygons) $sMoreURL .= '&polygon=1';
        if ($oGeocode->getIncludeAddressDetails()) $sMoreURL .= '&addressdetails=1';