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:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-10-13 10:00:33 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2015-10-14 16:56:03 +0300
commit371061ac6d9d7dd01c582834e390d86c948c2f24 (patch)
treeb14f964e27f9df25090efe798e52481fadeb500f
parent4a1246fa291974702b0bfb05ea973cd46bed48cd (diff)
Return path instead of itemsource
Fixes #19678 Errors should contain paths and not internal ids
-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 76eb2aad1df..9b417e7403a 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -625,8 +625,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));
- \OC_Log::write('OCP\Share', sprintf($message, $itemSourceName), \OC_Log::ERROR);
+ $message_t = $l->t('You are not allowed to share %s', [$path]);
+ \OC_Log::write('OCP\Share', sprintf($message, $path), \OC_Log::ERROR);
throw new \Exception($message_t);
}
}