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