diff options
-rw-r--r-- | lib/base.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index bfefa1425ab..1875edb5000 100644 --- a/lib/base.php +++ b/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"); |