From: Andrew Dolgov Date: Sat, 12 Aug 2006 12:24:04 +0000 (+0100) Subject: fail sanity if RSS_BACKEND_TYPE is not defined X-Git-Tag: schema_freeze_for_1.2.2~25 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f26baf361dbaa743f7be5e058a325dd7d9b52b1e;p=tt-rss.git fail sanity if RSS_BACKEND_TYPE is not defined --- diff --git a/sanity_check.php b/sanity_check.php index faadfd9c..9b3e4b1e 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