add missing return for shared

This commit is contained in:
Robin Appelman 2015-03-19 15:26:47 +01:00
parent 0772e3b4c1
commit d4c91dc835
1 changed files with 2 additions and 2 deletions

View File

@ -597,7 +597,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) {
/** @var \OCP\Files\Storage $targetStorage */
list($targetStorage, $targetInternalPath) = $this->resolvePath($targetInternalPath);
$targetStorage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
return $targetStorage->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
}
/**
@ -609,6 +609,6 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) {
/** @var \OCP\Files\Storage $targetStorage */
list($targetStorage, $targetInternalPath) = $this->resolvePath($targetInternalPath);
$targetStorage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
return $targetStorage->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
}
}