From f26baf361dbaa743f7be5e058a325dd7d9b52b1e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 12 Aug 2006 13:24:04 +0100 Subject: [PATCH] fail sanity if RSS_BACKEND_TYPE is not defined --- sanity_check.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sanity_check.php b/sanity_check.php index faadfd9c3..9b3e4b1eb 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -16,6 +16,13 @@ exit; } + if (!defined('RSS_BACKEND_TYPE')) { + print "Fatal error: RSS backend type is not defined + (config variable RSS_BACKEND_TYPE) - please check your + configuration file."; + exit; + } + if (RSS_BACKEND_TYPE == "magpie" && !file_exists("magpierss/rss_fetch.inc")) { print "Fatal Error: You forgot to place MagpieRSS