X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/74c06ef877c590774b59d31ab96428e5026dd284..4a321487f3d44241242a1729ab4d137df1f57bfb:/lib/ParameterParser.php diff --git a/lib/ParameterParser.php b/lib/ParameterParser.php index f3596cfd..0c0471a3 100644 --- a/lib/ParameterParser.php +++ b/lib/ParameterParser.php @@ -4,9 +4,10 @@ class ParameterParser { private $aParams; - function __construct($aParams = NULL) + + function __construct($aParams = null) { - $this->aParams = ($aParams === NULL) ? $_GET : $aParams; + $this->aParams = ($aParams === null) ? $_GET : $aParams; } function getBool($sName, $bDefault = false) @@ -77,9 +78,9 @@ class ParameterParser return $aDefault; } - function getPreferredLanguages($sFallback = NULL) + function getPreferredLanguages($sFallback = null) { - if ($sFallback === NULL && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { + if ($sFallback === null && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) { $sFallback = $_SERVER["HTTP_ACCEPT_LANGUAGE"]; }