X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6a7e0d652b1d40a397e1c1386d500101796676c4..ba8ed7967dc8450eb797e627809edafd3859acf7:/lib-php/website/status.php 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';