Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-15 20:58:05 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-15 20:58:05 +0300
commitdc3aee5acca029d91424dde215ca6b3ef09692a5 (patch)
treedc473333ef0f6622b71b5f79accefa43d163a951
parent2729c0417d006c0e3a39b433c712b8b710e46e18 (diff)
parent8ac5398f4e8a4af3488a23ce829d8c77dfec2bde (diff)
Merge pull request #19783 from owncloud/stable8.2_backport_19727
[Stable8.2] Return path instead of itemsource
-rw-r--r--lib/private/share/share.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 932586b5c27..c64bb31f89b 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -633,8 +633,8 @@ class Share extends Constants {
// verify that the user has share permission
if (!\OC\Files\Filesystem::isSharable($path)) {
$message = 'You are not allowed to share %s';
- $message_t = $l->t('You are not allowed to share %s', array($itemSourceName));
- \OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName), \OCP\Util::DEBUG);
+ $message_t = $l->t('You are not allowed to share %s', [$path]);
+ \OCP\Util::writeLog('OCP\Share', sprintf($message, $path), \OCP\Util::DEBUG);
throw new \Exception($message_t);
}
}