Skip to content
Snippets Groups Projects
Commit 8a5e88b2 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

Merge pull request #3211 from owncloud/fix-2816

Fix #2816 renaming shared files
parents ee53e7b3 04b7a990
Branches
No related tags found
No related merge requests found
......@@ -182,12 +182,10 @@ class Shared_Cache extends Cache {
*/
public function move($source, $target) {
if ($cache = $this->getSourceCache($source)) {
$targetPath = \OC_Share_Backend_File::getSourcePath(dirname($target));
if ($targetPath) {
$targetPath .= '/' . basename($target);
$cache->move($this->files[$source], $targetPath);
$file = \OC_Share_Backend_File::getSource($target);
if ($file && isset($file['path'])) {
$cache->move($this->files[$source], $file['path']);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment