summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/ShareBackend/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/ShareBackend/File.php')
-rw-r--r--apps/files_sharing/lib/ShareBackend/File.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/ShareBackend/File.php b/apps/files_sharing/lib/ShareBackend/File.php
index cdda89cbc63..53810d59eba 100644
--- a/apps/files_sharing/lib/ShareBackend/File.php
+++ b/apps/files_sharing/lib/ShareBackend/File.php
@@ -89,14 +89,15 @@ class File implements \OCP\Share_Backend_File_Dependent {
/**
* create unique target
- * @param string $filePath
+ *
+ * @param string $itemSource
* @param string $shareWith
* @param array $exclude (optional)
* @return string
*/
- public function generateTarget($filePath, $shareWith, $exclude = null) {
+ public function generateTarget($itemSource, $shareWith, $exclude = null) {
$shareFolder = \OCA\Files_Sharing\Helper::getShareFolder();
- $target = \OC\Files\Filesystem::normalizePath($shareFolder . '/' . basename($filePath));
+ $target = \OC\Files\Filesystem::normalizePath($shareFolder . '/' . basename($itemSource));
// for group shares we return the target right away
if ($shareWith === false) {