X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/244cb0e98c42375505b00f8d736dc5eabe408db7..25bdd7c6d99f99e5fe01c86477be1dcabc35ec98:/lib/lib.php?ds=inline diff --git a/lib/lib.php b/lib/lib.php index c4fbca30..9861cdd0 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -1,5 +1,23 @@ load($sProjectDir.'/.env'); + } + $dotenv->load(CONST_DataDir.'/settings/env.defaults'); +} + function fail($sError, $sUserError = false) { if (!$sUserError) $sUserError = $sError; @@ -55,7 +73,7 @@ function byImportance($a, $b) if ($a['importance'] != $b['importance']) return ($a['importance'] > $b['importance']?-1:1); - return ($a['foundorder'] < $b['foundorder']?-1:1); + return $a['foundorder'] <=> $b['foundorder']; }