diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-04-03 22:02:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-04-03 22:02:05 +0200 |
commit | bf7624fb255b7af534f5d6a740dd6dc9799cfc63 (patch) | |
tree | 8c61f56b8df1cd8118c92948a4432276efbfb4c3 /apps/files/ajax/newfolder.php | |
parent | 388142ecc6a3b1382858619e0fea6145c506ab5e (diff) | |
parent | d1e78d7a6b7ff074bb972e0840ca8cdfe2403000 (diff) | |
download | nextcloud-server-bf7624fb255b7af534f5d6a740dd6dc9799cfc63.tar.gz nextcloud-server-bf7624fb255b7af534f5d6a740dd6dc9799cfc63.zip |
Merge pull request #6968 from owncloud/files-ajaxload
Ajaxify files list for files + trashbin + public page
Diffstat (limited to 'apps/files/ajax/newfolder.php')
-rw-r--r-- | apps/files/ajax/newfolder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/newfolder.php b/apps/files/ajax/newfolder.php index 032447460f3..89c241189d7 100644 --- a/apps/files/ajax/newfolder.php +++ b/apps/files/ajax/newfolder.php @@ -58,8 +58,8 @@ if(\OC\Files\Filesystem::mkdir($target)) { $path = '/'.$foldername; } $meta = \OC\Files\Filesystem::getFileInfo($path); - $id = $meta['fileid']; - OCP\JSON::success(array('data' => array('id' => $id))); + $meta['type'] = 'dir'; // missing ?! + OCP\JSON::success(array('data' => \OCA\Files\Helper::formatFileInfo($meta))); exit(); } |