summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2013-03-06 21:05:13 +0100
committerBrice Maron <brice@bmaron.net>2013-03-06 21:05:13 +0100
commita68cbb00e0006d1bf82fd6c520c092ac799d7f0f (patch)
tree617f909007bbc56a0bebb382723dbd6eaa10ca25 /lib
parente5a497c9248fcab82b84befbc3842affccc71f9d (diff)
downloadnextcloud-server-a68cbb00e0006d1bf82fd6c520c092ac799d7f0f.tar.gz
nextcloud-server-a68cbb00e0006d1bf82fd6c520c092ac799d7f0f.zip
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";