diff --git a/backend.php b/backend.php index cdad2083f..327030e32 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 8212184c5..68c35ff44 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 ed2910a2a..e479c28b7 100644 --- a/functions.php +++ b/functions.php @@ -1,6 +1,12 @@