From: Sarah Hoffmann Date: Wed, 8 Jul 2020 06:38:11 +0000 (+0200) Subject: default language is a string when not set to false X-Git-Tag: v3.6.0~111^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/f376f452773ba0c9d99337c9c212cd1ad02da65b?hp=--cc default language is a string when not set to false --- f376f452773ba0c9d99337c9c212cd1ad02da65b diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index ea47e828..0ffb9f35 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -708,7 +708,7 @@ class SetupFunctions if (file_exists(getenv('NOMINATIM_SETTINGS'))) require_once(getenv('NOMINATIM_SETTINGS')); @define('CONST_Database_DSN', '".CONST_Database_DSN."'); // or add ;host=...;port=...;user=...;password=... -@define('CONST_Default_Language', ".(CONST_Default_Language ? 'true' : 'false')."); +@define('CONST_Default_Language', ".(CONST_Default_Language ? ("'".CONST_Default_Language."'") : 'false')."); @define('CONST_Default_Lat', ".CONST_Default_Lat."); @define('CONST_Default_Lon', ".CONST_Default_Lon."); @define('CONST_Default_Zoom', ".CONST_Default_Zoom.");