From: Andrew Dolgov Date: Wed, 23 Nov 2005 18:08:01 +0000 (+0100) Subject: debug request variable sets error_reporting to E_ALL X-Git-Tag: schema_feature_freeze_for_1.1~110 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=cce28758b293bffa184f0617083691285a197032;p=tt-rss.git debug request variable sets error_reporting to E_ALL --- diff --git a/backend.php b/backend.php index cdad2083..327030e3 100644 --- a/backend.php +++ b/backend.php @@ -1,6 +1,14 @@ "; - error_reporting (E_ERROR | E_WARNING | E_PARSE); + error_reporting (DEFAULT_ERROR_LEVEL); } } @@ -227,7 +235,7 @@ $class .= "Unread"; } - error_reporting (E_ERROR | E_WARNING | E_PARSE); + error_reporting (DEFAULT_ERROR_LEVEL); printFeedEntry(-$line["id"]-11, $class, $line["description"], $count, "images/label.png", $link); @@ -836,7 +844,7 @@ $lnum = 0; - error_reporting (E_ERROR | E_WARNING | E_PARSE); + error_reporting (DEFAULT_ERROR_LEVEL); $num_unread = 0; diff --git a/config.php-dist b/config.php-dist index 8212184c..68c35ff4 100644 --- a/config.php-dist +++ b/config.php-dist @@ -2,29 +2,29 @@ // Your RDBMS must be configured to accept connections // via TCP/IP and authentified by password. - define(DB_TYPE, "pgsql"); // or mysql - define(DB_HOST, "localhost"); - define(DB_USER, "fox"); - define(DB_NAME, "fox"); - define(DB_PASS, "XXXXXX"); + define('DB_TYPE', "pgsql"); // or mysql + define('DB_HOST', "localhost"); + define('DB_USER', "fox"); + define('DB_NAME', "fox"); + define('DB_PASS', "XXXXXX"); define('MAGPIE_CACHE_DIR', '/var/tmp/magpie-ttrss-cache'); // Local cache directory for RSS feeds - define(WEB_DEMO_MODE, false); + define('WEB_DEMO_MODE', false); // Demo mode with reduced functionality. - define(ICONS_DIR, "icons"); - define(ICONS_URL, "icons"); + define('ICONS_DIR', "icons"); + define('ICONS_URL', "icons"); - define(USE_HTTP_AUTH, false); + define('USE_HTTP_AUTH', false); // Use HTTP Basic authentication instead of login form. Has some problems. - define(SINGLE_USER_MODE, true); + define('SINGLE_USER_MODE', true); // Operate in single user mode, disables all functionality related to // multiple users. - define(DAEMON_REFRESH_ONLY, false); + define('DAEMON_REFRESH_ONLY', false); // updates to all feeds will only run when the backend script is // invoked with a "daemon" option on the URI stem. This is useful when you // are hosting multi-user system and want to control how often diff --git a/functions.php b/functions.php index ed2910a2..e479c28b 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,12 @@