Fix bug in rename() so files in a folder that is in a shared folder also get their targets updated

This commit is contained in:
Michael Gapczynski 2011-07-16 14:29:22 -04:00
parent dbcb35655e
commit 5aaacf3241
1 changed files with 3 additions and 0 deletions

View File

@ -384,6 +384,9 @@ class OC_FILESTORAGE_SHARED extends OC_FILESTORAGE {
OC_SHARE::setTarget($oldTarget, $newTarget); OC_SHARE::setTarget($oldTarget, $newTarget);
} else { } else {
OC_SHARE::pullOutOfFolder($oldTarget, $newTarget); OC_SHARE::pullOutOfFolder($oldTarget, $newTarget);
if (self::is_dir($path1)) {
OC_SHARE::setTarget($oldTarget, $newTarget);
}
} }
} }