summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-13 09:00:33 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-13 09:00:33 +0200
commit585e9cb0e9aa69a87b331333f60b4dc106cb14da (patch)
tree4fa9563665726d49459b741125c23d1728b1cf6f /lib/private
parent1f146d678c115ba9e6894e5ee6f8f5f3978f0dd9 (diff)
downloadnextcloud-server-585e9cb0e9aa69a87b331333f60b4dc106cb14da.tar.gz
nextcloud-server-585e9cb0e9aa69a87b331333f60b4dc106cb14da.zip
Return path instead of itemsource
Fixes #19678 Errors should contain paths and not internal ids
Diffstat (limited to 'lib/private')
-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);
}
}