diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-09 17:06:08 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:13:23 +0200 |
commit | d7de35376d7e068abdfb49e8336feab25e313662 (patch) | |
tree | b4d054593e20eb2f5396e06ef1c472337993a7c4 /apps/files_sharing/appinfo/app.php | |
parent | 0156ef816650ec73d033ebba2107cf237d6301e3 (diff) | |
download | nextcloud-server-d7de35376d7e068abdfb49e8336feab25e313662.tar.gz nextcloud-server-d7de35376d7e068abdfb49e8336feab25e313662.zip |
Add interface for accpeting external shares
Diffstat (limited to 'apps/files_sharing/appinfo/app.php')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index 9ea969f4cf3..db4e042faeb 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -23,7 +23,10 @@ $externalManager->setup(); OCP\Util::connectHook('OC_Filesystem', 'setup', '\OC\Files\Storage\Shared', 'setup'); OCP\Share::registerBackend('file', 'OC_Share_Backend_File'); OCP\Share::registerBackend('folder', 'OC_Share_Backend_Folder', 'file'); + OCP\Util::addScript('files_sharing', 'share'); +OCP\Util::addScript('files_sharing', 'external'); + \OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Shared_Updater', 'writeHook'); \OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Shared_Updater', 'postDeleteHook'); \OC_Hook::connect('OC_Filesystem', 'delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook'); |