set debug mode if an xdebug session is active

remotes/origin/stable45
Robin Appelman 13 years ago
parent 2c1f732880
commit 2508f64efe
  1. 7
      lib/base.php

@ -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");

Loading…
Cancel
Save