]> source.dussan.org Git - nextcloud-server.git/commitdiff
pretty print json
authorJörn Friedrich Dreyer <jfd@butonic.de>
Sat, 16 Feb 2013 11:10:54 +0000 (12:10 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Sat, 16 Feb 2013 11:10:54 +0000 (12:10 +0100)
apps/files_external/lib/config.php

index 36ef48462a7b01137353a00ed7741d949a57431e..81c01eb3d0a4f373ceb59e1f3e23336fcb6d18f4 100755 (executable)
@@ -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);
        }