aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb@seb-laptop-acer.(none)>2010-11-22 18:48:11 +0000
committerSeb Bacon <seb@seb-laptop-acer.(none)>2010-11-22 18:48:11 +0000
commit72bff5a10bde7c46a5b4c7a308d5dc6b5e138539 (patch)
treed70d072a1df1c4fd8e674450f079fd71a5fdacef
parent44e4b0c1a1b353f3e6451516a631774db72f1b18 (diff)
Provide default value in order to make tests pass
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 4d2483234..f6f99573e 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -213,7 +213,7 @@ class ApplicationController < ActionController::Base
#
def check_read_only
- read_only = MySociety::Config.get('READ_ONLY')
+ read_only = MySociety::Config.get('READ_ONLY', nil)
if !read_only.empty?
flash[:notice] = "<p>WhatDoTheyKnow is currently in maintenance. You can only view existing requests. You cannot make new ones, add followups or annotations, or otherwise change the database.</p> <p>" + read_only + "</p>"
redirect_to frontpage_url