Added an URL option to activate debug : debug activates all messages, and disables the cache.

This commit is contained in:
teromene@teromene.fr 2016-03-03 15:26:07 +00:00
parent 084eb4c9f4
commit 3e8a7624e1
1 changed files with 8 additions and 1 deletions

View File

@ -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';