From 72bff5a10bde7c46a5b4c7a308d5dc6b5e138539 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Mon, 22 Nov 2010 18:48:11 +0000 Subject: Provide default value in order to make tests pass --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/application_controller.rb') 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] = "

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.

" + read_only + "

" redirect_to frontpage_url -- cgit v1.2.3