From: Andrew Dolgov Date: Fri, 31 Mar 2006 05:30:20 +0000 (+0100) Subject: remove stupid DISABLE_SESSIONS kludge, check if constant is defined, not true X-Git-Tag: 1.1.5~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9a3bb96a8700c60235dc27406e32d8affdc1c106;p=tt-rss.git remove stupid DISABLE_SESSIONS kludge, check if constant is defined, not true --- diff --git a/backend.php b/backend.php index f073dc9a..a9f79667 100644 --- a/backend.php +++ b/backend.php @@ -3913,7 +3913,7 @@ "SESSION_COOKIE_LIFETIME_REMEMBER"; } - if (defined('DISABLE_SESSIONS') && DISABLE_SESSIONS) { + if (defined('DISABLE_SESSIONS')) { return "config: you have enabled DISABLE_SESSIONS. Please disable this option."; } diff --git a/config.php-dist b/config.php-dist index 5344e11d..e72e5291 100644 --- a/config.php-dist +++ b/config.php-dist @@ -91,13 +91,9 @@ define('ENABLE_UPDATE_DAEMON', false); // This enables different mechanism for user-triggered updates designed // for update daemon running in background on the server. - // This option suggests FEEDS_FRAME_REFRESH set to a small value // (like 60 seconds, depending on number of users and server/bandwidth load). - define('DISABLE_SESSIONS', false); - // Never enable this option (kludge for daemon using tt-rss code) - define('DAEMON_SLEEP_INTERVAL', 120); // Interval between update daemon update runs diff --git a/db-prefs.php b/db-prefs.php index 0309f00a..e9aaee30 100644 --- a/db-prefs.php +++ b/db-prefs.php @@ -2,7 +2,7 @@ require_once "config.php"; require_once "db.php"; - if (! DISABLE_SESSIONS) { + if (!defined('DISABLE_SESSIONS')) { if (!$_SESSION["prefs_cache"]) $_SESSION["prefs_cache"] = array(); } diff --git a/tt-rss.css b/tt-rss.css index be1f5cb8..edbb3116 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1073,7 +1073,6 @@ div.cdmContent a:hover { #fatal_error_msg { border : 1px solid #c0c0c0; background-color : #f0f0f0; - width : 50%; color : black; padding : 10px; font-weight : normal;