]> git.wh0rd.org - tt-rss.git/blobdiff - include/sanity_check.php
fix 500 error on missing config.php
[tt-rss.git] / include / sanity_check.php
index 3e5c0980358b25f0d51aa55262f8d777c401c5f7..2769b4b59f480a07d39f7676aeb0a3045e9edf4b 100644 (file)
@@ -1,15 +1,15 @@
 <?php
        require_once "functions.php";
 
-       define('EXPECTED_CONFIG_VERSION', 23);
-       define('SCHEMA_VERSION', 86);
-
        if (!file_exists("config.php")) {
                print "<b>Fatal Error</b>: You forgot to copy
                <b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
                exit;
        }
 
+       define('EXPECTED_CONFIG_VERSION', 23);
+       define('SCHEMA_VERSION', 86);
+
        require_once "config.php";
        require_once "sanity_config.php";