diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-09-01 20:51:48 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-09-01 20:52:13 +0200 |
commit | 2508f64efee5204fdb38eda51435d0bad7da76f2 (patch) | |
tree | a5b17d29eef561045c41c2d653475109e817c292 /lib/base.php | |
parent | 2c1f732880ebb43247bdaec73329777b99bcebf0 (diff) | |
download | nextcloud-server-2508f64efee5204fdb38eda51435d0bad7da76f2.tar.gz nextcloud-server-2508f64efee5204fdb38eda51435d0bad7da76f2.zip |
set debug mode if an xdebug session is active
Diffstat (limited to 'lib/base.php')
-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"); |