diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-03-08 15:47:49 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-03-08 15:47:49 +0100 |
commit | 700a120c225f056070f1c5601ca91f88b3bbe870 (patch) | |
tree | 7f3737933b0ba59879867fc1827ca6b465d4517f /apps/gallery | |
parent | d8cfe77ba5348d29a9e2b046e2c7efc1dd4758cb (diff) | |
download | nextcloud-server-700a120c225f056070f1c5601ca91f88b3bbe870.tar.gz nextcloud-server-700a120c225f056070f1c5601ca91f88b3bbe870.zip |
fix write hook for gallery
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 3c101b1f8a1..480e41a8bf9 100644 --- a/apps/gallery/lib/hooks_handlers.php +++ b/apps/gallery/lib/hooks_handlers.php @@ -68,7 +68,7 @@ class OC_Gallery_Hooks_Handlers { if (!self::isPhoto($fullpath)) return; - $path = substr($fullpath, 0, strrpos($fullpath, '/')); + $path = dirname($fullpath); if (!self::pathInRoot($path)) return; OC_Gallery_Scanner::scanDir($path, $albums); |