]> git.wh0rd.org - tt-rss.git/commitdiff
expand description of SELF_URL_PATH, set sanity check (closes #384)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Nov 2011 18:07:52 +0000 (22:07 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 6 Nov 2011 18:07:52 +0000 (22:07 +0400)
config.php-dist
sanity_check.php

index 5052e9573ee3d19fb9a16ad3618c6c9cb73c1361..7ecbad7fe94baf395b552fd0ddd0fbf26a4d8909 100644 (file)
@@ -7,9 +7,11 @@
        define('DB_PASS', "XXXXXX");
        //define('DB_PORT', '5432'); // when neeeded, PG-only
 
-       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.
+       define('SELF_URL_PATH', 'http://yourserver/tt-rss/');
+       // Full URL of your tt-rss installation. This should be set to the
+       // location of tt-rss directory, e.g. http://yourserver/tt-rss/
+       // You need to set this option correctly otherwise several features
+       // including PUSH, bookmarklets and browser integration will not work properly.
 
        define('SINGLE_USER_MODE', true);
        // Operate in single user mode, disables all functionality related to
index 0c803d883bd0e96c8a8caae35bff7cbb0785ddec..3e5c0980358b25f0d51aa55262f8d777c401c5f7 100644 (file)
                $err_msg = "config: DEFAULT_UPDATE_METHOD should be either 0 or 1.";
        }
 
+       if (SELF_URL_PATH == "http://yourserver/tt-rss/") {
+               $err_msg = "config: please set SELF_URL_PATH to the correct value.";
+       }
+
        if (!is_writable(ICONS_DIR)) {
                $err_msg = "config: your ICONS_DIR (" . ICONS_DIR . ") is not writable.\n";
        }