From: Tom Hughes Date: Fri, 21 Sep 2007 08:13:17 +0000 (+0000) Subject: Check API status correctly. X-Git-Tag: live~8159 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/734697ebb6cc27057fd8bb1d078a175ca5f45406 Check API status correctly. --- diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index 3c84dc47f..ef11b5c0b 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -67,7 +67,7 @@ <% end %> - <% if API_READONLY %> + <% if API_STAUS != :online %>
The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out. diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index b1c555586..7d07895f8 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -1,4 +1,4 @@ -<% if API_READONLY %> +<% if API_STATUS != :online %>

The OpenStreetMap database is currently in read-only mode while essential database maintenance work is carried out.