Merge pull request #19727 from owncloud/fix_19678
Return path instead of itemsource
This commit is contained in:
commit
3e87560033
|
@ -633,8 +633,8 @@ class Share extends Constants {
|
||||||
// verify that the user has share permission
|
// verify that the user has share permission
|
||||||
if (!\OC\Files\Filesystem::isSharable($path)) {
|
if (!\OC\Files\Filesystem::isSharable($path)) {
|
||||||
$message = 'You are not allowed to share %s';
|
$message = 'You are not allowed to share %s';
|
||||||
$message_t = $l->t('You are not allowed to share %s', array($itemSourceName));
|
$message_t = $l->t('You are not allowed to share %s', [$path]);
|
||||||
\OCP\Util::writeLog('OCP\Share', sprintf($message, $itemSourceName), \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('OCP\Share', sprintf($message, $path), \OCP\Util::DEBUG);
|
||||||
throw new \Exception($message_t);
|
throw new \Exception($message_t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue