pretty print json

This commit is contained in:
Jörn Friedrich Dreyer 2013-02-16 12:10:54 +01:00
parent 6da2c6c83e
commit e1700c28fa
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ class OC_Mount_Config {
} else {
$file = OC::$SERVERROOT.'/config/mount.json';
}
$content = json_encode($data);
$content = json_encode($data, JSON_PRETTY_PRINTy print json);
@file_put_contents($file, $content);
}