diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-13 10:00:33 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-14 16:56:03 +0300 |
commit | 371061ac6d9d7dd01c582834e390d86c948c2f24 (patch) | |
tree | b14f964e27f9df25090efe798e52481fadeb500f | |
parent | 4a1246fa291974702b0bfb05ea973cd46bed48cd (diff) |
Return path instead of itemsource
Fixes #19678
Errors should contain paths and not internal ids
-rw-r--r-- | lib/private/share/share.php | 4 |
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); } } |