X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..87d5883ddbd5fe80afd8bc6930785fea30a69fa6:/lib-php/website/status.php?ds=inline diff --git a/lib-php/website/status.php b/lib-php/website/status.php index 9f030fb3..7c7eb928 100644 --- a/lib-php/website/status.php +++ b/lib-php/website/status.php @@ -37,8 +37,13 @@ if ($sOutputFormat == 'json') { $aResponse = array( 'status' => 0, 'message' => 'OK', - 'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339) + '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';