X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4faefe156c0a57bae9dd7114ba9fa63ef312187e..00b05e239495fe147f9a74f0e36eb243c8a32227:/lib-php/website/status.php diff --git a/lib-php/website/status.php b/lib-php/website/status.php index 3bb2ffa1..7c7eb928 100644 --- a/lib-php/website/status.php +++ b/lib-php/website/status.php @@ -40,6 +40,10 @@ if ($sOutputFormat == 'json') { 'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339), 'software_version' => CONST_NominatimVersion ); + $sDatabaseVersion = $oStatus->databaseVersion(); + if ($sDatabaseVersion) { + $aResponse['database_version'] = $sDatabaseVersion; + } javascript_renderData($aResponse); } else { echo 'OK';