set debug mode if an xdebug session is active

This commit is contained in:
Robin Appelman 2012-09-01 20:51:48 +02:00
parent 2c1f732880
commit 2508f64efe
1 changed files with 7 additions and 0 deletions

View File

@ -315,6 +315,13 @@ class OC{
self::initPaths();
// set debug mode if an xdebug session is active
if (!defined('DEBUG') || !DEBUG){
if(isset($_COOKIE['XDEBUG_SESSION'])){
define('DEBUG',true);
}
}
// register the stream wrappers
require_once('streamwrappers.php');
stream_wrapper_register("fakedir", "OC_FakeDirStream");