diff options
author | Andreas Fischer <bantu@owncloud.com> | 2013-08-08 21:36:10 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2013-08-08 22:14:21 +0200 |
commit | beb27168de3e81f71c894ee64561d029b3b2b02c (patch) | |
tree | ecf1e1e0237123be6fd6d685fcfd3171998684e2 /apps/files/ajax | |
parent | 0ab885047867ba9b28514e5e4f93136e74837fe5 (diff) | |
download | nextcloud-server-beb27168de3e81f71c894ee64561d029b3b2b02c.tar.gz nextcloud-server-beb27168de3e81f71c894ee64561d029b3b2b02c.zip |
Use multiple lines for the JSON data array.
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/newfile.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 46149c3e8bd..8c1aad8668c 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -87,7 +87,11 @@ if($source) { $meta = \OC\Files\Filesystem::getFileInfo($target); $id = $meta['fileid']; $mime = $meta['mimetype']; - OCP\JSON::success(array("data" => array('mime'=>$mime, 'content'=>$content, 'id' => $id))); + OCP\JSON::success(array('data' => array( + 'id' => $id, + 'mime' => $mime, + 'content' => $content, + ))); exit(); } } |