diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-05 10:18:45 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-05 10:18:45 +0200 |
commit | 9bcc5c11a8785a567ded6c0e4ab3a40966785606 (patch) | |
tree | cb50df0695f11fb8132a35e214caa8cd211bb9a2 /apps/gallery | |
parent | 4a89eb77c1732a49075d4f3f6a46ddaad10eef70 (diff) | |
download | nextcloud-server-9bcc5c11a8785a567ded6c0e4ab3a40966785606.tar.gz nextcloud-server-9bcc5c11a8785a567ded6c0e4ab3a40966785606.zip |
porting the hooks and starting with the templates
Diffstat (limited to 'apps/gallery')
-rwxr-xr-x | apps/gallery/lib/hooks_handlers.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gallery/lib/hooks_handlers.php b/apps/gallery/lib/hooks_handlers.php index 678d3fe7531..6391e9f4e54 100755 --- a/apps/gallery/lib/hooks_handlers.php +++ b/apps/gallery/lib/hooks_handlers.php @@ -21,9 +21,9 @@ * */ -OC_Hook::connect(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OC_Gallery_Hooks_Handlers", "addPhotoFromPath"); -OC_Hook::connect(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_delete, "OC_Gallery_Hooks_Handlers", "removePhoto"); -//OC_Hook::connect(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_rename, "OC_Gallery_Hooks_Handlers", "renamePhoto"); +OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_write, "OC_Gallery_Hooks_Handlers", "addPhotoFromPath"); +OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_delete, "OC_Gallery_Hooks_Handlers", "removePhoto"); +//OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_post_rename, "OC_Gallery_Hooks_Handlers", "renamePhoto"); require_once(OC::$CLASSPATH['OC_Gallery_Album']); require_once(OC::$CLASSPATH['OC_Gallery_Photo']); |