[Pkg-owncloud-commits] [owncloud] 40/69: ignore part files

David Prévot taffit at moszumanska.debian.org
Sat May 10 16:20:37 UTC 2014


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

taffit pushed a commit to branch master
in repository owncloud.

commit bee48f851ee76cab2367f3f7add641a3a75845eb
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Wed May 7 11:47:27 2014 +0200

    ignore part files
---
 apps/files_sharing/lib/updater.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index f7c0a75..249211c 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/apps/files_sharing/lib/updater.php
@@ -55,6 +55,12 @@ class Shared_Updater {
 	* @param string $target
 	*/
 	static public function correctFolders($target) {
+
+		// ignore part files
+		if (pathinfo($target, PATHINFO_EXTENSION) === 'part') {
+			return false;
+		}
+
 		// Correct Shared folders of other users shared with
 		$shares = \OCA\Files_Sharing\Helper::getSharesFromItem($target);
 

-- 
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