[Pkg-owncloud-commits] [owncloud] 14/52: Fixed directory icon after rename

David Prévot taffit at moszumanska.debian.org
Mon Dec 2 01:49:37 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit da1a89fd153e7ffa922d01381c571f9aa2417b47
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Thu Nov 28 13:15:20 2013 +0100

    Fixed directory icon after rename
---
 apps/files/lib/app.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/apps/files/lib/app.php b/apps/files/lib/app.php
index ea94ea4..e04ac17 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'],

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list