diff options
author | Brice Maron <brice@bmaron.net> | 2013-03-06 21:05:13 +0100 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2013-03-06 21:05:13 +0100 |
commit | a68cbb00e0006d1bf82fd6c520c092ac799d7f0f (patch) | |
tree | 617f909007bbc56a0bebb382723dbd6eaa10ca25 /lib | |
parent | e5a497c9248fcab82b84befbc3842affccc71f9d (diff) | |
download | nextcloud-server-a68cbb00e0006d1bf82fd6c520c092ac799d7f0f.tar.gz nextcloud-server-a68cbb00e0006d1bf82fd6c520c092ac799d7f0f.zip |
Preserve Debug flag accross config writes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config.php | 6 |
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"; |