set debug mode if an xdebug session is active
This commit is contained in:
parent
2c1f732880
commit
2508f64efe
|
@ -315,6 +315,13 @@ class OC{
|
||||||
|
|
||||||
self::initPaths();
|
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
|
// register the stream wrappers
|
||||||
require_once('streamwrappers.php');
|
require_once('streamwrappers.php');
|
||||||
stream_wrapper_register("fakedir", "OC_FakeDirStream");
|
stream_wrapper_register("fakedir", "OC_FakeDirStream");
|
||||||
|
|
Loading…
Reference in New Issue