aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-03-12 10:26:01 -0700
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-03-12 10:26:01 -0700
commit68a7b53e031d8a7ece5f73fb8f7821d18ea037b8 (patch)
treeccfbfb0a20289cad9108b4cd7dd9627674ee6db4 /lib
parent43d15066f972ce7de722f3ca998bfe9147da911f (diff)
parenta68cbb00e0006d1bf82fd6c520c092ac799d7f0f (diff)
downloadnextcloud-server-68a7b53e031d8a7ece5f73fb8f7821d18ea037b8.tar.gz
nextcloud-server-68a7b53e031d8a7ece5f73fb8f7821d18ea037b8.zip
Merge pull request #2145 from eMerzh/preserve_debug
Preserve Debug flag accross config writes
Diffstat (limited to 'lib')
-rw-r--r--lib/config.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/config.php b/lib/config.php
index 0bd497b8e50..c94eb278159 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -155,7 +155,11 @@ class OC_Config{
*/
public static function writeData() {
// Create a php file ...
- $content = "<?php\n\$CONFIG = ";
+ $content = "<?php\n ";
+ if (defined('DEBUG') && DEBUG) {
+ $content .= "define('DEBUG',true);\n";
+ }
+ $content .= "\$CONFIG = ";
$content .= var_export(self::$cache, true);
$content .= ";\n";