fail sanity if RSS_BACKEND_TYPE is not defined

This commit is contained in:
Andrew Dolgov 2006-08-12 13:24:04 +01:00
parent 0728071819
commit f26baf361d

View file

@ -16,6 +16,13 @@
exit; 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")) { if (RSS_BACKEND_TYPE == "magpie" && !file_exists("magpierss/rss_fetch.inc")) {
print "<b>Fatal Error</b>: You forgot to place print "<b>Fatal Error</b>: You forgot to place
<a href=\"http://magpierss.sourceforge.net\">MagpieRSS</a> <a href=\"http://magpierss.sourceforge.net\">MagpieRSS</a>