diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-28 13:15:20 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-28 13:15:20 +0100 |
commit | da1a89fd153e7ffa922d01381c571f9aa2417b47 (patch) | |
tree | efde1c4f3bf569de05f6829582d94d154c993c75 /apps/files/lib | |
parent | dab3629ff5c65de91813cde6e9adda769ece2609 (diff) | |
download | nextcloud-server-da1a89fd153e7ffa922d01381c571f9aa2417b47.tar.gz nextcloud-server-da1a89fd153e7ffa922d01381c571f9aa2417b47.zip |
Fixed directory icon after rename
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/app.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php index ea94ea43ef3..e04ac173d55 100644 --- a/apps/files/lib/app.php +++ b/apps/files/lib/app.php @@ -77,6 +77,12 @@ class App { ) { // successful rename $meta = $this->view->getFileInfo($dir . '/' . $newname); + if ($meta['mimetype'] === 'httpd/unix-directory') { + $meta['type'] = 'dir'; + } + else { + $meta['type'] = 'file'; + } $fileinfo = array( 'id' => $meta['fileid'], 'mime' => $meta['mimetype'], |