]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/website/status.php
higher penalty for special searches
[nominatim.git] / lib-php / website / status.php
index 3bb2ffa1828c7a00e72fbc620403a26d04b18b8f..7c7eb9281c5e449fb09a52f18ce8c1153273e7e7 100644 (file)
@@ -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';