Skip to content
Snippets Groups Projects
Commit 2508f64e authored by Robin Appelman's avatar Robin Appelman
Browse files

set debug mode if an xdebug session is active

parent 2c1f7328
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment