summaryrefslogtreecommitdiff
path: root/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-12 13:24:04 +0100
committerAndrew Dolgov <[email protected]>2006-08-12 13:24:04 +0100
commitf26baf361dbaa743f7be5e058a325dd7d9b52b1e (patch)
tree6d57153b4a49f63fd67d5e87b373ac0a4936ec35 /sanity_check.php
parent072807181920d51b112db5d17c5ad83566632c24 (diff)
fail sanity if RSS_BACKEND_TYPE is not defined
Diffstat (limited to 'sanity_check.php')
-rw-r--r--sanity_check.php7
1 files changed, 7 insertions, 0 deletions
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 "<b>Fatal error</b>: RSS backend type is not defined
+ (config variable <b>RSS_BACKEND_TYPE</b>) - please check your
+ configuration file.";
+ exit;
+ }
+
if (RSS_BACKEND_TYPE == "magpie" && !file_exists("magpierss/rss_fetch.inc")) {
print "<b>Fatal Error</b>: You forgot to place
<a href=\"http://magpierss.sourceforge.net\">MagpieRSS</a>