fix write hook for gallery

This commit is contained in:
Robin Appelman 2012-03-08 15:47:49 +01:00
parent d8cfe77ba5
commit 700a120c22

View file

@ -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);