summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-05 10:18:45 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-05 10:18:45 +0200
commit9bcc5c11a8785a567ded6c0e4ab3a40966785606 (patch)
treecb50df0695f11fb8132a35e214caa8cd211bb9a2 /apps/files_sharing/appinfo
parent4a89eb77c1732a49075d4f3f6a46ddaad10eef70 (diff)
downloadnextcloud-server-9bcc5c11a8785a567ded6c0e4ab3a40966785606.tar.gz
nextcloud-server-9bcc5c11a8785a567ded6c0e4ab3a40966785606.zip
porting the hooks and starting with the templates
Diffstat (limited to 'apps/files_sharing/appinfo')
-rwxr-xr-xapps/files_sharing/appinfo/app.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index f80bdb9e195..bd81a45cc55 100755
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -4,12 +4,12 @@ require_once('apps/files_sharing/sharedstorage.php');
OC::$CLASSPATH['OC_Share'] = "apps/files_sharing/lib_share.php";
OCP\App::registerAdmin('files_sharing', 'settings');
-OC_Hook::connect("OC_Filesystem", "post_delete", "OC_Share", "deleteItem");
-OC_Hook::connect("OC_Filesystem", "post_rename", "OC_Share", "renameItem");
-OC_Hook::connect("OC_Filesystem", "post_write", "OC_Share", "updateItem");
-OC_Hook::connect('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser');
-OC_Hook::connect('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
-OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
+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");