]> git.wh0rd.org - tt-rss.git/commitdiff
add sanity check for SELF_URL_PATH being kept at default value (refs #349)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Aug 2011 04:56:52 +0000 (08:56 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Aug 2011 04:56:52 +0000 (08:56 +0400)
config.php-dist
sanity_check.php

index 6ebcc1a115f5f30aef7d23c6a9dfc343c532e483..5052e9573ee3d19fb9a16ad3618c6c9cb73c1361 100644 (file)
@@ -7,7 +7,7 @@
        define('DB_PASS', "XXXXXX");
        //define('DB_PORT', '5432'); // when neeeded, PG-only
 
-       define('SELF_URL_PATH', 'http://localhost/tt-rss');
+       define('SELF_URL_PATH', 'http://local.host/tt-rss');
        // Full URL of your tt-rss installation. You need to set this option
        // correctly for tt-rss to function properly.
 
index 3007d2bb74e61fb67cfa057784aae92f9332e9b1..9df2fb0470e20cd9e7519278dc9e33eac9db378b 100644 (file)
                $err_msg = "PHP: DOMDocument extension not found.";
        }
 
+       if (SELF_URL_PATH == "http://local.host/tt-rss") {
+               $err_msg = "config: please set SELF_URL_PATH to the correct value";
+       }
+
        if (!ISCONFIGURED) {
                $err_msg = "config: please read config.php completely.";
        }