]> git.wh0rd.org Git - tt-rss.git/commitdiff
fail sanity if RSS_BACKEND_TYPE is not defined
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 12 Aug 2006 12:24:04 +0000 (13:24 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 12 Aug 2006 12:24:04 +0000 (13:24 +0100)
sanity_check.php

index faadfd9c33610afcde5e54e06a6c0046f68b8c10..9b3e4b1eb214b7f4a231c833d7413fc44892fff5 100644 (file)
                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>