diff options
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/app.php | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php index ea3a9da6f7a..109f86b2e87 100644 --- a/apps/files_sharing/appinfo/app.php +++ b/apps/files_sharing/appinfo/app.php @@ -1,19 +1,9 @@ <?php -require_once('apps/files_sharing/sharedstorage.php'); - -OC::$CLASSPATH['OC_Share'] = "apps/files_sharing/lib_share.php"; -OCP\App::registerAdmin('files_sharing', 'settings'); -OCP\Util::connectHook("OC_Filesystem", "post_delete", "OC_Share", "deleteItem"); -OCP\Util::connectHook("OC_Filesystem", "post_rename", "OC_Share", "renameItem"); -OCP\Util::connectHook("OC_Filesystem", "post_write", "OC_Share", "updateItem"); -OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser'); -OCP\Util::connectHook('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare'); -OCP\Util::connectHook('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare'); -$dir = isset($_GET['dir']) ? $_GET['dir'] : '/'; -if ($dir != '/Shared' || OCP\Config::getAppValue('files_sharing', 'resharing', 'yes') == 'yes') { - OCP\Util::addscript("files_sharing", "share"); -} -OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min"); -OCP\Util::addStyle( 'files_sharing', 'sharing' ); -OCP\Util::addStyle("3rdparty", "chosen/chosen"); +OC::$CLASSPATH['OC_Share_Backend_File'] = "apps/files_sharing/lib/share/file.php"; +OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'apps/files_sharing/lib/share/folder.php'; +OC::$CLASSPATH['OC_Filestorage_Shared'] = "apps/files_sharing/lib/sharedstorage.php"; +OCP\Util::connectHook('OC_Filesystem', 'setup', 'OC_Filestorage_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'); |