diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-19 17:38:04 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-20 17:10:49 +0200 |
commit | cd934d5d8924b51d719ac20025b5fa034c74c3fb (patch) | |
tree | 69613b0e26eaa40abf9190e0d90bd63476ab6766 /apps/gallery | |
parent | 5c8e774cea24bd964632ae96357a308272753513 (diff) | |
download | nextcloud-server-cd934d5d8924b51d719ac20025b5fa034c74c3fb.tar.gz nextcloud-server-cd934d5d8924b51d719ac20025b5fa034c74c3fb.zip |
Adjust OC_Filesystem use in hooks to string, so the class is loaded as late as possible
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/lib/hooks_handlers.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib/hooks_handlers.php b/apps/gallery/lib/hooks_handlers.php index a9f4dc6affc..093979834da 100644 --- a/apps/gallery/lib/hooks_handlers.php +++ b/apps/gallery/lib/hooks_handlers.php @@ -21,7 +21,7 @@ * */ -OCP\Util::connectHook(OC_Filesystem::CLASSNAME, OC_Filesystem::signal_delete, "OC_Gallery_Hooks_Handlers", "removePhoto"); +OCP\Util::connectHook('OC_Filesystem', '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['Pictures_Managers']); |