From 31187a4d13a7f914ee5fe4eae0af0a268bce90f9 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 5 Dec 2013 15:28:54 +0000 Subject: Only show the blog if a BLOG_FEED is configured. --- app/controllers/general_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/general_controller.rb') diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index aac078829..b01a67027 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -17,6 +17,10 @@ class GeneralController < ApplicationController # Display blog entries def blog + if AlaveteliConfiguration::blog_feed.empty? + raise ActiveRecord::RecordNotFound.new("Page not enabled") + end + medium_cache @feed_autodetect = [] @feed_url = AlaveteliConfiguration::blog_feed -- cgit v1.2.3