[Pkg-owncloud-commits] [owncloud] 109/223: Fix removing remote shares
David Prévot
taffit at moszumanska.debian.org
Sun Jun 22 01:54:12 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 a900c7aa94ad6527cb3bdf2600b6b1e9e6b497ac
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu May 15 12:13:46 2014 +0200
Fix removing remote shares
---
apps/files_sharing/lib/external/storage.php | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 2683a6a..0e799a0 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -88,4 +88,22 @@ class Storage extends \OC\Files\Storage\DAV implements ISharedStorage {
return false;
}
}
+
+ public function unlink($path) {
+ if ($path === '' || $path === false) {
+ $this->manager->removeShare($this->mountPoint);
+ return true;
+ } else {
+ return parent::unlink($path);
+ }
+ }
+
+ public function rmdir($path) {
+ if ($path === '' || $path === false) {
+ $this->manager->removeShare($this->mountPoint);
+ return true;
+ } else {
+ return parent::rmdir($path);
+ }
+ }
}
--
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