Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-18 14:12:32 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-18 14:12:32 +0400
commit51185c1b53222d70663bd723bc067f45f52b7110 (patch)
treea813d96875b95165989d651ff88620236a8ec865 /apps/files_encryption
parent6ef2acb82b78fe8a3c48c05324d8895f30db15e9 (diff)
make sure that we don't connect hooks multiple times
Diffstat (limited to 'apps/files_encryption')
-rwxr-xr-xapps/files_encryption/tests/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/tests/share.php b/apps/files_encryption/tests/share.php
index 5506ea6ec92..cf52022dc5e 100755
--- a/apps/files_encryption/tests/share.php
+++ b/apps/files_encryption/tests/share.php
@@ -64,7 +64,7 @@ class Test_Encryption_Share extends \PHPUnit_Framework_TestCase {
\OC_Appconfig::setValue('core', 'shareapi_allow_resharing', 'yes');
// clear share hooks
- \OC_Hook::clear('OCP\\Share');
+ \OC_Hook::clear();
\OC::registerShareHooks();
\OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup');