From 3e8a7624e151eedda0007d8336b9da2177544c4f Mon Sep 17 00:00:00 2001 From: "teromene@teromene.fr" Date: Thu, 3 Mar 2016 15:26:07 +0000 Subject: [PATCH] Added an URL option to activate debug : debug activates all messages, and disables the cache. --- index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 783e91a2..5e9dfbb3 100644 --- a/index.php +++ b/index.php @@ -14,7 +14,14 @@ TODO : date_default_timezone_set('UTC'); error_reporting(0); -//ini_set('display_errors','1'); error_reporting(E_ALL); // For debugging only. + +if(isset($_REQUEST['debug'])) { + + ini_set('display_errors','1'); error_reporting(E_ALL); //Report all errors + + $_REQUEST["disable_cache"] = true; //Disable the cache. + +} require_once __DIR__ . '/lib/RssBridge.php';