diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 12:38:38 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 12:38:38 +0200 |
commit | 3e8756003371103d3d68824dcafaf83cfb81f689 (patch) | |
tree | 2c1313f8c9133711c736b83dc46f6afc8be000df /lib/private/share/share.php | |
parent | bfac6c5eb711442d87912e0706548774b2726751 (diff) | |
parent | 585e9cb0e9aa69a87b331333f60b4dc106cb14da (diff) | |
download | nextcloud-server-3e8756003371103d3d68824dcafaf83cfb81f689.tar.gz nextcloud-server-3e8756003371103d3d68824dcafaf83cfb81f689.zip |
Merge pull request #19727 from owncloud/fix_19678
Return path instead of itemsource
Diffstat (limited to 'lib/private/share/share.php')
-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 aafaeca9768..abb9ec3cb99 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); } } |