Merge pull request #2145 from eMerzh/preserve_debug

Preserve Debug flag accross config writes
This commit is contained in:
Jan-Christoph Borchardt 2013-03-12 10:26:01 -07:00
commit 68a7b53e03
1 changed files with 5 additions and 1 deletions

View File

@ -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";