]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
adapt to code style conventions
[nominatim.git] / website / search.php
index c216c8848c3a07063fd448e92d1a2222ba1da2fa..8b160f8f72d98d435b69dd1eb4523ec4773d1b68 100755 (executable)
@@ -1,7 +1,8 @@
 <?php
        @define('CONST_ConnectionBucket_PageType', 'Search');
 
-       require_once(dirname(dirname(__FILE__)).'/lib/init-website.php');
+       require_once(dirname(dirname(__FILE__)).'/settings/settings.php');
+       require_once(CONST_BasePath.'/lib/init-website.php');
        require_once(CONST_BasePath.'/lib/log.php');
        require_once(CONST_BasePath.'/lib/Geocode.php');
 
@@ -14,7 +15,7 @@
        $fLon = CONST_Default_Lon;
        $iZoom = CONST_Default_Zoom;
 
-       $oGeocode =& new Geocode($oDB);
+       $oGeocode = new Geocode($oDB);
 
        $aLangPrefOrder = getPreferredLanguages();
        $oGeocode->setLanguagePreference($aLangPrefOrder);