X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4faefe156c0a57bae9dd7114ba9fa63ef312187e..dc700c25b66c9885acc719f7ec9761f52b586c20:/lib-php/website/status.php?ds=inline 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';